schema-truth 0.0.0-stage → 0.8.1
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/README.md +143 -2
- package/dist/ajv-DS9gtNZC.js +105 -0
- package/dist/ajv.d.ts +24 -0
- package/dist/ajv.js +1 -0
- package/dist/arktype-CRZ8vXZ5.js +803 -0
- package/dist/arktype.d.ts +10 -0
- package/dist/arktype.js +1 -0
- package/dist/cli/ajv.d.ts +1 -0
- package/dist/cli/ajv.js +15 -0
- package/dist/cli/arktype.d.ts +1 -0
- package/dist/cli/arktype.js +15 -0
- package/dist/cli/effect.d.ts +1 -0
- package/dist/cli/effect.js +15 -0
- package/dist/cli/typebox.d.ts +1 -0
- package/dist/cli/typebox.js +15 -0
- package/dist/cli/valibot.d.ts +1 -0
- package/dist/cli/valibot.js +15 -0
- package/dist/cli/yup.d.ts +1 -0
- package/dist/cli/yup.js +15 -0
- package/dist/cli/zod.d.ts +1 -0
- package/dist/cli/zod.js +15 -0
- package/dist/cli-eAY8LqwP.js +124 -0
- package/dist/effect-BkWovUi3.js +678 -0
- package/dist/effect.d.ts +12 -0
- package/dist/effect.js +1 -0
- package/dist/helper-CbeedY35.js +1798 -0
- package/dist/index-DYzAccyT.d.ts +69 -0
- package/dist/index-G7UqNQ4w.d.ts +603 -0
- package/dist/index.d.ts +332 -0
- package/dist/index.js +10 -0
- package/dist/parser-CyJ2auea.js +36 -0
- package/dist/typebox-wYeJqy7T.js +563 -0
- package/dist/typebox.d.ts +21 -0
- package/dist/typebox.js +1 -0
- package/dist/utils-Bky98UmP.js +1146 -0
- package/dist/valibot-DQUEDYKt.js +705 -0
- package/dist/valibot.d.ts +9 -0
- package/dist/valibot.js +1 -0
- package/dist/yup-BMpa9Co1.js +92 -0
- package/dist/yup.d.ts +17 -0
- package/dist/yup.js +1 -0
- package/dist/zod-Dq9LtqPL.js +816 -0
- package/dist/zod.d.ts +9 -0
- package/dist/zod.js +1 -0
- package/package.json +112 -4
package/dist/effect.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { r as JSONSchema } from "./index-G7UqNQ4w.js";
|
|
2
|
+
import { n as GenerateOptions } from "./index-DYzAccyT.js";
|
|
3
|
+
//#region src/generator/effect/index.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* A whole JSON Schema document as an Effect Schema module: imports, `$defs` in
|
|
6
|
+
* dependency order, the root export, and the inferred type.
|
|
7
|
+
*
|
|
8
|
+
* `options.readonly` is accepted for API symmetry and is a no-op: `Schema.Struct` and
|
|
9
|
+
* `Schema.Array` are already readonly at the type level.
|
|
10
|
+
*/
|
|
11
|
+
export declare function schemaToEffect(input: JSONSchema, options?: GenerateOptions): string;
|
|
12
|
+
//#endregion
|
package/dist/effect.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as schemaToEffect } from "./effect-BkWovUi3.js";
|