surreal-zod 0.0.0-alpha.12 → 0.0.0-alpha.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "surreal-zod",
3
- "version": "0.0.0-alpha.12",
3
+ "version": "0.0.0-alpha.14",
4
4
  "scripts": {
5
5
  "build": "tsc -p tsconfig.build.json",
6
6
  "prepack": "bun run build"
package/src/zod/core.ts CHANGED
@@ -539,15 +539,6 @@ export type $InferOuterFunctionDbTypeAsync<
539
539
  ...args: ZodSurrealFunctionIn extends Args ? never[] : dbinput<Args>
540
540
  ) => Promise<dboutput<Returns>>;
541
541
 
542
- export interface ZodSurrealFunctionDef<
543
- In extends ZodSurrealFunctionIn = ZodSurrealFunctionIn,
544
- Out extends ZodSurrealFunctionOut = ZodSurrealFunctionOut,
545
- > extends $ZodSurrealTypeDef {
546
- type: "function";
547
- input: In;
548
- output: Out;
549
- }
550
-
551
542
  // Literal
552
543
 
553
544
  type LiteralPart = Exclude<core.util.Literal, symbol>;
@@ -0,0 +1,8 @@
1
+ export {
2
+ $input,
3
+ $output,
4
+ type infer,
5
+ type input,
6
+ type output,
7
+ } from "zod/v4/core";
8
+ export * from "./core";
package/src/zod/index.ts CHANGED
@@ -1,2 +1,3 @@
1
+ export * from "./external";
1
2
  export * from "./parse";
2
3
  export * from "./schema";
@@ -872,8 +872,7 @@ export function toJSONSchema(
872
872
  if (Object.keys(defs).length > 0) {
873
873
  const defsSegment =
874
874
  ctx.target === "draft-2020-12" ? "$defs" : "definitions";
875
- // @ts-expect-error
876
- core.__shared = {
875
+ schemas.__shared = {
877
876
  [defsSegment]: defs,
878
877
  };
879
878
  }