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/lib/data-types.d.ts +4 -0
- package/lib/data-types.js +6 -0
- package/lib/zod/core.d.ts +0 -5
- package/lib/zod/external.d.ts +2 -0
- package/lib/zod/external.js +2 -0
- package/lib/zod/index.d.ts +1 -0
- package/lib/zod/index.js +1 -0
- package/lib/zod/json-schema.js +1 -2
- package/lib/zod/schema.d.ts +147 -148
- package/lib/zod/schema.js +116 -10
- package/package.json +1 -1
- package/src/zod/core.ts +0 -9
- package/src/zod/external.ts +8 -0
- package/src/zod/index.ts +1 -0
- package/src/zod/json-schema.ts +1 -2
- package/src/zod/schema.ts +598 -992
package/package.json
CHANGED
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>;
|
package/src/zod/index.ts
CHANGED
package/src/zod/json-schema.ts
CHANGED
|
@@ -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
|
-
|
|
876
|
-
core.__shared = {
|
|
875
|
+
schemas.__shared = {
|
|
877
876
|
[defsSegment]: defs,
|
|
878
877
|
};
|
|
879
878
|
}
|