/
home
/
techb158
/
balavpn.abdallabala.com
/
node_modules
/
zod
/
v4
/
core
/
/home/techb158/balavpn.abdallabala.com/node_modules/zod/v4/core
mkdir
upload
Name
Size
Mode
Actions
api.cjs
26465
0666
edit
dl
rm
api.d.cts
29445
0666
edit
dl
rm
api.d.ts
29440
0666
edit
dl
rm
api.js
22983
0666
edit
dl
rm
checks.cjs
21098
0666
edit
dl
rm
checks.d.cts
12782
0666
edit
dl
rm
checks.d.ts
12778
0666
edit
dl
rm
checks.js
19544
0666
edit
dl
rm
core.cjs
2309
0666
edit
dl
rm
core.d.cts
1811
0666
edit
dl
rm
core.d.ts
1808
0666
edit
dl
rm
core.js
2085
0666
edit
dl
rm
doc.cjs
1199
0666
edit
dl
rm
doc.d.cts
353
0666
edit
dl
rm
doc.d.ts
353
0666
edit
dl
rm
doc.js
1088
0666
edit
dl
rm
errors.cjs
7650
0666
edit
dl
rm
errors.d.cts
7893
0666
edit
dl
rm
errors.d.ts
7889
0666
edit
dl
rm
errors.js
6316
0666
edit
dl
rm
function.cjs
4012
0666
edit
dl
rm
function.d.cts
3597
0666
edit
dl
rm
function.d.ts
3593
0666
edit
dl
rm
function.js
2717
0666
edit
dl
rm
index.cjs
2163
0666
edit
dl
rm
index.d.cts
514
0666
edit
dl
rm
index.d.ts
499
0666
edit
dl
rm
index.js
499
0666
edit
dl
rm
json-schema.cjs
77
0666
edit
dl
rm
json-schema.d.cts
2676
0666
edit
dl
rm
json-schema.d.ts
2676
0666
edit
dl
rm
json-schema.js
11
0666
edit
dl
rm
parse.cjs
3957
0666
edit
dl
rm
parse.d.cts
1505
0666
edit
dl
rm
parse.d.ts
1501
0666
edit
dl
rm
parse.js
2552
0666
edit
dl
rm
regexes.cjs
7062
0666
edit
dl
rm
regexes.d.cts
2762
0666
edit
dl
rm
regexes.d.ts
2762
0666
edit
dl
rm
regexes.js
6411
0666
edit
dl
rm
registries.cjs
1676
0666
edit
dl
rm
registries.d.cts
1646
0666
edit
dl
rm
registries.d.ts
1644
0666
edit
dl
rm
registries.js
1485
0666
edit
dl
rm
schemas.cjs
64843
0666
edit
dl
rm
schemas.d.cts
44698
0666
edit
dl
rm
schemas.d.ts
44691
0666
edit
dl
rm
schemas.js
62652
0666
edit
dl
rm
standard-schema.cjs
77
0666
edit
dl
rm
standard-schema.d.cts
2403
0666
edit
dl
rm
standard-schema.d.ts
2403
0666
edit
dl
rm
standard-schema.js
11
0666
edit
dl
rm
to-json-schema.cjs
35910
0666
edit
dl
rm
to-json-schema.d.cts
3729
0666
edit
dl
rm
to-json-schema.d.ts
3726
0666
edit
dl
rm
to-json-schema.js
35687
0666
edit
dl
rm
util.cjs
16438
0666
edit
dl
rm
util.d.cts
10750
0666
edit
dl
rm
util.d.ts
10746
0666
edit
dl
rm
util.js
15004
0666
edit
dl
rm
versions.cjs
168
0666
edit
dl
rm
versions.d.cts
109
0666
edit
dl
rm
versions.d.ts
109
0666
edit
dl
rm
versions.js
70
0666
edit
dl
rm
Edit:
/home/techb158/balavpn.abdallabala.com/node_modules/zod/v4/core/to-json-schema.d.cts
(3729B)
import type * as JSONSchema from "./json-schema.cjs"; import { $ZodRegistry } from "./registries.cjs"; import type * as schemas from "./schemas.cjs"; interface JSONSchemaGeneratorParams { /** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def. * @default globalRegistry */ metadata?: $ZodRegistry<Record<string, any>>; /** The JSON Schema version to target. * - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12 * - `"draft-7"` — JSON Schema Draft 7 */ target?: "draft-7" | "draft-2020-12"; /** How to handle unrepresentable types. * - `"throw"` — Default. Unrepresentable types throw an error * - `"any"` — Unrepresentable types become `{}` */ unrepresentable?: "throw" | "any"; /** Arbitrary custom logic that can be used to modify the generated JSON Schema. */ override?: (ctx: { zodSchema: schemas.$ZodTypes; jsonSchema: JSONSchema.BaseSchema; path: (string | number)[]; }) => void; /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, Error converting schema to JSONz, defaults, coerced primitives, etc. * - `"output"` — Default. Convert the output schema. * - `"input"` — Convert the input schema. */ io?: "input" | "output"; } interface ProcessParams { schemaPath: schemas.$ZodType[]; path: (string | number)[]; } interface EmitParams { /** How to handle cycles. * - `"ref"` — Default. Cycles will be broken using $defs * - `"throw"` — Cycles will throw an error if encountered */ cycles?: "ref" | "throw"; reused?: "ref" | "inline"; external?: { /** */ registry: $ZodRegistry<{ id?: string | undefined; }>; uri?: ((id: string) => string) | undefined; defs: Record<string, JSONSchema.BaseSchema>; } | undefined; } interface Seen { /** JSON Schema result for this Zod schema */ schema: JSONSchema.BaseSchema; /** A cached version of the schema that doesn't get overwritten during ref resolution */ def?: JSONSchema.BaseSchema; defId?: string | undefined; /** Number of times this schema was encountered during traversal */ count: number; /** Cycle path */ cycle?: (string | number)[] | undefined; isParent?: boolean | undefined; ref?: schemas.$ZodType | undefined | null; /** JSON Schema property path for this schema */ path?: (string | number)[] | undefined; } export declare class JSONSchemaGenerator { metadataRegistry: $ZodRegistry<Record<string, any>>; target: "draft-7" | "draft-2020-12"; unrepresentable: "throw" | "any"; override: (ctx: { zodSchema: schemas.$ZodTypes; jsonSchema: JSONSchema.BaseSchema; path: (string | number)[]; }) => void; io: "input" | "output"; counter: number; seen: Map<schemas.$ZodType, Seen>; constructor(params?: JSONSchemaGeneratorParams); process(schema: schemas.$ZodType, _params?: ProcessParams): JSONSchema.BaseSchema; emit(schema: schemas.$ZodType, _params?: EmitParams): JSONSchema.BaseSchema; } interface ToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> { } interface RegistryToJSONSchemaParams extends Omit<JSONSchemaGeneratorParams & EmitParams, "external"> { uri?: (id: string) => string; } export declare function toJSONSchema(schema: schemas.$ZodType, _params?: ToJSONSchemaParams): JSONSchema.BaseSchema; export declare function toJSONSchema(registry: $ZodRegistry<{ id?: string | undefined; }>, _params?: RegistryToJSONSchemaParams): { schemas: Record<string, JSONSchema.BaseSchema>; }; export {};
Save
cmd:
run