Upgrading zod 1 to 3
Breaking1.11.17 → 3.25.76Breaking8Security3Platform2Deprecated2New102Changed98Fixed129Other425
BreakingUpgrade verdict
8 breaking changes and 2 platform requirement changes and 2 security fixes.
In plain terms
- A helper type for non-empty arrays is gone, and the array type now tracks whether it must contain at least one item.
- Removes ZodIntersection.
- Passing a key that does not exist on the object to pick or omit is now a type error.
- Generic code that relied on the old any defaults may need explicit type arguments.
Must act Top 5 of 14 that need code or config changes
What you must change
Breaking8
Removes ZodNonEmptyArray and adds a Cardinality type parameter to ZodArray.
ZodNonEmptyArrayCardinalityZodArrayRemoves ZodIntersection.
ZodIntersectionFixes a bug where unknown keys were accepted in .pick() and .omit(), which can cause compiler errors in existing code.
.pick().omit()Changes the default generics of ZodType so Input and Output default to unknown instead of any.
ZodType.void() now only accepts undefined, not null.
.void()Eliminates ZodTypes to enable custom ZodType subclasses.
ZodTypesZodTypeDrops example and examples entirely.
exampleexamplesAdds ZodPipeline, ZodReadonly and ZodSymbol to the ZodFirstPartySchemaTypes union, which may affect codegen libraries.
ZodFirstPartySchemaTypesZodPipelineZodReadonlyZodSymbolSecurity2
Zod denial of service vulnerability
emailModerate · CVSS 5.3Fixes a prototype pollution vulnerability.
Platform2
Drops official support for TypeScript 4.4 and earlier; no breaking API changes are reported.
Adds support for TypeScript 4.5.
Deprecations to plan for
Deprecated2
Deprecates deepPartial.
deepPartialImproves the JSDoc deprecation warning for nonempty.
nonemptyAPI changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
interface File
- added:
default z - added:
export * from './v3/external' - added:
export { z }
- removed:
class ZodError extends Error - removed:
const ZodErrorCode: { invalid_type: 'invalid_type'; nonempty_array_is_empty: 'nonempty_array_is_empty'; custom_error: 'custom_error'; invalid_union: 'invalid_union'; invalid_liter… - removed:
const quotelessJson: (obj: any) => string - removed:
constructor ZodError(errors: ZodSuberror[]) - removed:
interface ZodCustomError extends ZodSuberrorBase - removed:
interface ZodInvalidArgumentsError extends ZodSuberrorBase - removed:
interface ZodInvalidDateError extends ZodSuberrorBase - removed:
interface ZodInvalidEnumValueError extends ZodSuberrorBase - removed:
interface ZodInvalidLiteralValueError extends ZodSuberrorBase - removed:
interface ZodInvalidReturnTypeError extends ZodSuberrorBase - removed:
interface ZodInvalidStringError extends ZodSuberrorBase - removed:
interface ZodInvalidTypeError extends ZodSuberrorBase - removed:
interface ZodInvalidUnionError extends ZodSuberrorBase - removed:
interface ZodNonEmptyArrayIsEmptyError extends ZodSuberrorBase - removed:
interface ZodTooBigError extends ZodSuberrorBase - removed:
interface ZodTooSmallError extends ZodSuberrorBase - removed:
interface ZodUnrecognizedKeysError extends ZodSuberrorBase - removed:
property ZodCustomError.code: typeof ZodErrorCode.custom_error - removed:
property ZodCustomError.params?: { [k: string]: any } - removed:
property ZodError.addError: (sub: ZodSuberror) => void - removed:
property ZodError.addErrors: (subs?: ZodSuberror[]) => void - removed:
property ZodError.errors: ZodSuberror[] - removed:
property ZodError.flatten: () => { formErrors: string[]; fieldErrors: { [k: string]: string[] } } - removed:
property ZodInvalidArgumentsError.argumentsError: ZodError - removed:
property ZodInvalidArgumentsError.code: typeof ZodErrorCode.invalid_arguments - removed:
property ZodInvalidDateError.code: typeof ZodErrorCode.invalid_date - removed:
property ZodInvalidEnumValueError.code: typeof ZodErrorCode.invalid_enum_value - removed:
property ZodInvalidEnumValueError.options: (string | number)[] - removed:
property ZodInvalidLiteralValueError.code: typeof ZodErrorCode.invalid_literal_value - removed:
property ZodInvalidLiteralValueError.expected: string | number | boolean - removed:
property ZodInvalidReturnTypeError.code: typeof ZodErrorCode.invalid_return_type - removed:
property ZodInvalidReturnTypeError.returnTypeError: ZodError - removed:
property ZodInvalidStringError.code: typeof ZodErrorCode.invalid_string - removed:
property ZodInvalidStringError.validation: StringValidation - removed:
property ZodInvalidTypeError.code: typeof ZodErrorCode.invalid_type - removed:
property ZodInvalidTypeError.expected: ZodParsedType - removed:
property ZodInvalidTypeError.received: ZodParsedType - removed:
property ZodInvalidUnionError.code: typeof ZodErrorCode.invalid_union - removed:
property ZodInvalidUnionError.unionErrors: ZodError[] - removed:
property ZodNonEmptyArrayIsEmptyError.code: typeof ZodErrorCode.nonempty_array_is_empty - removed:
property ZodTooBigError.code: typeof ZodErrorCode.too_big - removed:
property ZodTooBigError.inclusive: boolean - removed:
property ZodTooBigError.maximum: number - removed:
property ZodTooBigError.type: 'array' | 'string' | 'number' - removed:
property ZodTooSmallError.code: typeof ZodErrorCode.too_small - removed:
property ZodTooSmallError.inclusive: boolean - removed:
property ZodTooSmallError.minimum: number - removed:
property ZodTooSmallError.type: 'array' | 'string' | 'number' - removed:
property ZodUnrecognizedKeysError.code: typeof ZodErrorCode.unrecognized_keys - removed:
property ZodUnrecognizedKeysError.keys: string[] - removed:
readonly property ZodError.formErrors: { formErrors: string[]; fieldErrors: { [k: string]: string[] } } - removed:
readonly property ZodError.isEmpty: boolean - removed:
readonly property ZodError.message: string - removed:
static property ZodError.create: (errors: ZodSuberror[]) => ZodError - removed:
type StringValidation = 'email' | 'url' | 'uuid' | 'regex' - removed:
type ZodErrorCode = keyof typeof ZodErrorCode - removed:
type ZodSuberror = ZodSuberrorOptionalMessage & { message: string } - removed:
type ZodSuberrorBase = { path: (string | number)[]; message?: string } - removed:
type ZodSuberrorOptionalMessage = ZodInvalidTypeError | ZodNonEmptyArrayIsEmptyError | ZodUnrecognizedKeysError | ZodInvalidUnionError | ZodInvalidLiteralValueError | ZodInvalidEnumValueError |…
- removed:
class ZodCodeGenerator - removed:
property ZodCodeGenerator.dump: () => string - removed:
property ZodCodeGenerator.findById: (id: string) => TypeResult - removed:
property ZodCodeGenerator.findBySchema: (schema: z.ZodType<any, any>) => TypeResult | undefined - removed:
property ZodCodeGenerator.generate: (schema: z.ZodType<any, any>) => TypeResult - removed:
property ZodCodeGenerator.randomId: () => string - removed:
property ZodCodeGenerator.seen: TypeResult[] - removed:
property ZodCodeGenerator.serial: number - removed:
property ZodCodeGenerator.setType: (id: string, type: string) => TypeResult - removed:
static property ZodCodeGenerator.create: () => z.ZodCodeGenerator
- removed:
const defaultErrorMap: (error: ZodSuberrorOptionalMessage, _ctx: ErrorMapCtx) => { message: string } - removed:
type ZodErrorMap = typeof defaultErrorMap
- removed:
class Mocker - removed:
property Mocker.pick: (...args: any[]) => any - removed:
readonly property Mocker.bigint: bigint - removed:
readonly property Mocker.boolean: boolean - removed:
readonly property Mocker.booleanNullable: any - removed:
readonly property Mocker.booleanOptional: any - removed:
readonly property Mocker.date: Date - removed:
readonly property Mocker.null: null - removed:
readonly property Mocker.number: number - removed:
readonly property Mocker.numberNullable: any - removed:
readonly property Mocker.numberOptional: any - removed:
readonly property Mocker.string: string - removed:
readonly property Mocker.stringNullable: any - removed:
readonly property Mocker.stringOptional: any - removed:
readonly property Mocker.undefined: undefined
- removed:
const errorUtil.errToObj: (message?: string | { message?: string | undefined } | undefined) => { message?: string | undefined } - removed:
namespace errorUtil - removed:
type errorUtil.ErrMessage = string | { message?: string }
- removed:
namespace maskUtil - removed:
type maskUtil.BasePick<T, P extends any> = { primitive: T; primitivearray: T; true: T; object: { [k in keyof P]: k extends keyof T ? Pick<T[k], P[k]> : never }; array: T extends (infer U)[] ? Pick<U, P>… - removed:
type maskUtil.Params<T> = { array: T extends Array<infer U> ? true | { [k in keyof U]?: true | Params<U[k]> } : never; object: T extends AnyObject ? { [k in keyof T]?: true | Params<T[k… - removed:
type maskUtil.Pick<T, P> = null extends T ? undefined extends T ? BasePick<NonNullable<T>, P> | null | undefined : BasePick<NonNullable<T>, P> | null : undefined extends T ? BasePick<Non… - removed:
type maskUtil.PickTest<T, P extends any> = P extends true ? 'true' : true extends IsObject<T> ? 'object' : true extends IsObjectArray<T> ? 'array' : 'rest'
- removed:
const objectUtil.mergeObjects: <First extends ZodObject<any, any, any>>(first: First) => <Second extends ZodObject<any, any, any>>(second: Second) => ZodObject<First['_shape'] & Second['_sha… - removed:
const objectUtil.mergeShapes: <U extends ZodRawShape, T extends ZodRawShape>(first: U, second: T) => T & U - removed:
interface objectUtil.ZodObjectParams - removed:
namespace objectUtil - removed:
property objectUtil.ZodObjectParams.strict: boolean - removed:
type objectUtil.AddQuestionMarks<T extends object> = { [k in OptionalKeys<T>]?: T[k] } & { [k in RequiredKeys<T>]: T[k] } - removed:
type objectUtil.Flatten<T extends object> = { [k in keyof T]: T[k] } - removed:
type objectUtil.FlattenObject<T extends ZodRawShape> = Identity<{ [k in keyof T]: T[k] }> - removed:
type objectUtil.Identity<T> = T - removed:
type objectUtil.MergeObjectParams<First extends ZodObjectParams, Second extends ZodObjectParams> = { strict: First['strict'] extends false ? false : Second['strict'] extends false ? false : true } - removed:
type objectUtil.MergeShapes<U extends ZodRawShape, V extends ZodRawShape> = { [k in Exclude<keyof U, keyof V>]: U[k] } & V - removed:
type objectUtil.NoNever<T extends ZodRawShape> = Identity<{ [k in NoNeverKeys<T>]: k extends keyof T ? T[k] : never }> - removed:
type objectUtil.NoNeverKeys<T extends ZodRawShape> = { [k in keyof T]: [T[k]] extends [never] ? never : k }[keyof T] - removed:
type objectUtil.ObjectIntersection<T extends ZodRawShape> = AddQuestionMarks<{ [k in keyof T]: T[k]['_type'] }> - removed:
type objectUtil.ObjectType<T extends ZodRawShape> = FlattenObject<ObjectIntersection<T>> - removed:
type objectUtil.OptionalKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? k : never }[keyof T] - removed:
type objectUtil.RequiredKeys<T extends object> = Exclude<keyof T, OptionalKeys<T>>
- removed:
namespace partialUtil - removed:
type partialUtil.DeepPartial<T extends z.ZodTypeAny> = { object: T extends z.ZodObject<infer Shape, infer Params> ? z.ZodUnion<[z.ZodObject<{ [k in keyof Shape]: DeepPartial<Shape[k]> }, Params>, z.ZodUndefined]> :… - removed:
type partialUtil.RootDeepPartial<T extends z.ZodTypeAny> = { object: T extends z.ZodObject<infer Shape, infer Params> ? z.ZodObject<{ [k in keyof Shape]: DeepPartial<Shape[k]> }, Params> : never; rest: z.ZodUnion<[T, z…
- removed:
type Primitive = string | number | bigint | boolean | null | undefined
- removed:
const util.arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k } - removed:
const util.getValidEnumValues: (obj: any) => any[] - removed:
const util.getValues: (obj: any) => any[] - removed:
const util.objectValues: (obj: any) => any[] - removed:
function util.assertNever(_x: never): never - removed:
namespace util - removed:
type util.AssertEqual<T, Expected> = T extends Expected ? Expected extends T ? true : false : false - removed:
type util.MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>> - removed:
type util.Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> - removed:
type util.OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>
- removed:
const any: () => ZodAny - removed:
const array: <T extends ZodType<any, any>>(schema: T) => ZodArray<T> - removed:
const bigint: () => ZodBigInt - removed:
const boolean: () => ZodBoolean - removed:
const codegen: () => ZodCodeGenerator - removed:
const custom: <T>(check: (data: unknown) => any, params?: string | Pick<{ check: (arg: any) => any; path?: (string | number)[] | undefined; message?: string | undefined; par… - removed:
const date: () => ZodDate - removed:
const enum: <U extends string, T extends [U, ...U[]]>(values: T) => ZodEnum<T> - removed:
const function: <T extends ZodTuple<any> = ZodTuple<[]>, U extends ZodType<any, any> = ZodUnknown>(args?: T | undefined, returns?: U | undefined) => ZodFunction<T, U> - removed:
const instanceof: <T extends new (...args: any[]) => any>(cls: T, params?: string | Pick<{ check: (arg: any) => any; path?: (string | number)[] | undefined; message?: string | u… - removed:
const intersection: <T extends ZodType<any, any>, U extends ZodType<any, any>>(left: T, right: U) => ZodIntersection<T, U> - removed:
const keyof: <T extends import('./types/nativeEnum').EnumLike>(object: T) => ZodKeyof<T> - removed:
const late: { object: <T extends import('./types/base').ZodRawShape>(shape: () => T) => ZodObject<T, { strict: true }, { [k in keyof ({ [k in { [k in keyof { [k in keyof T… - removed:
const lazy: <T extends ZodType<any, any>>(getter: () => T) => ZodLazy<T> - removed:
const literal: <T extends import('./helpers/primitive').Primitive>(value: T) => ZodLiteral<T> - removed:
const nativeEnum: <T extends import('./types/nativeEnum').EnumLike>(values: T) => ZodNativeEnum<T> - removed:
const null: () => ZodNull - removed:
const number: () => ZodNumber - removed:
const object: <T extends import('./types/base').ZodRawShape>(shape: T) => ZodObject<T, { strict: true }, { [k in keyof ({ [k in { [k in keyof { [k in keyof T]: T[k]['_type']… - removed:
const oboolean: () => ZodUnion<[ZodBoolean, ZodUndefined]> - removed:
const onumber: () => ZodUnion<[ZodNumber, ZodUndefined]> - removed:
const ostring: () => ZodUnion<[ZodString, ZodUndefined]> - removed:
const promise: <T extends ZodType<any, any>>(schema: T) => ZodPromise<T> - removed:
const record: <Value extends ZodType<any, any> = ZodType<any, any>>(valueType: Value) => ZodRecord<Value> - removed:
const string: () => ZodString - removed:
const tuple: <T extends [ZodType<any, any>, ...ZodType<any, any>[]] | []>(schemas: T) => ZodTuple<T> - removed:
const undefined: () => ZodUndefined - removed:
const union: <T extends [ZodType<any, any>, ZodType<any, any>, ...ZodType<any, any>[]]>(types: T) => ZodUnion<T> - removed:
const unknown: () => ZodUnknown - removed:
const void: () => ZodVoid - removed:
export * from './ZodError' - removed:
export { TypeOf as infer } - removed:
export { TypeOf } - removed:
export { ZodAny } - removed:
export { ZodArray } - removed:
export { ZodBigInt } - removed:
export { ZodBoolean } - removed:
export { ZodCodeGenerator } - removed:
export { ZodDate } - removed:
export { ZodEnum } - removed:
export { ZodErrorMap } - removed:
export { ZodFunction } - removed:
export { ZodIntersection } - removed:
export { ZodLazy } - removed:
export { ZodLiteral } - removed:
export { ZodNativeEnum } - removed:
export { ZodNull } - removed:
export { ZodNumber } - removed:
export { ZodObject } - removed:
export { ZodParsedType } - removed:
export { ZodPromise } - removed:
export { ZodRecord } - removed:
export { ZodString } - removed:
export { ZodTuple } - removed:
export { ZodType as Schema } - removed:
export { ZodType as ZodSchema } - removed:
export { ZodType } - removed:
export { ZodTypeAny } - removed:
export { ZodTypeDef } - removed:
export { ZodTypes } - removed:
export { ZodUndefined } - removed:
export { ZodUnion } - removed:
export { ZodUnknown } - removed:
export { ZodVoid } - removed:
type ZodDef = ZodStringDef | ZodNumberDef | ZodBigIntDef | ZodBooleanDef | ZodDateDef | ZodUndefinedDef | ZodNullDef | ZodAnyDef | ZodUnknownDef | ZodVoidDef | ZodArrayDef |…
- removed:
const isScalar: (schema: z.ZodType<any, any>, params?: { root: boolean }) => boolean
- removed:
const ZodParsedType: { number: 'number'; string: 'string'; nan: 'nan'; integer: 'integer'; boolean: 'boolean'; date: 'date'; bigint: 'bigint'; symbol: 'symbol'; function: 'function… - removed:
const ZodParser: (schemaDef: z.ZodTypeDef) => (obj: any, baseParams?: ParseParams) => any - removed:
const find: (arr: any[], checker: (arg: any) => any) => any - removed:
const getParsedType: (data: any) => 'number' | 'string' | 'nan' | 'integer' | 'boolean' | 'date' | 'bigint' | 'symbol' | 'function' | 'undefined' | 'null' | 'array' | 'object' | 'u… - removed:
type MakeErrorData = stripPath<ZodSuberrorOptionalMessage> & { path?: (string | number)[] } - removed:
type ParseParams = { seen?: { schema: any; objects: { data: any; error?: any; times: number }[] }[]; path?: (string | number)[]; errorMap?: ZodErrorMap } - removed:
type ZodParsedType = keyof typeof ZodParsedType
- removed:
const visitor: (schema: z.ZodType<any, any>) => void
- removed:
class ZodAny extends z.ZodType<any, ZodAnyDef> - removed:
interface ZodAnyDef extends z.ZodTypeDef - removed:
property ZodAny.toJSON: () => ZodAnyDef - removed:
property ZodAnyDef.t: z.ZodTypes.any - removed:
static property ZodAny.create: () => ZodAny
- removed:
class ZodArray<T extends z.ZodTypeAny> extends z.ZodType<T['_type'][], ZodArrayDef<T>> - removed:
class ZodNonEmptyArray<T extends z.ZodTypeAny> extends z.ZodType<[T['_type'], ...T['_type'][]], ZodArrayDef<T>> - removed:
interface ZodArrayDef<T extends z.ZodTypeAny = z.ZodTypeAny> extends z.ZodTypeDef - removed:
property ZodArray.length: (len: number, message?: string | undefined) => this - removed:
property ZodArray.max: (maxLength: number, message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodArray.min: (minLength: number, message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodArray.nonempty: () => ZodNonEmptyArray<T> - removed:
property ZodArray.toJSON: () => { t: z.ZodTypes.array; nonempty: boolean; type: object } - removed:
property ZodArrayDef.nonempty: boolean - removed:
property ZodArrayDef.t: z.ZodTypes.array - removed:
property ZodArrayDef.type: T - removed:
property ZodNonEmptyArray.length: (len: number, message?: string | undefined) => this - removed:
property ZodNonEmptyArray.max: (maxLength: number, message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodNonEmptyArray.min: (minLength: number, message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodNonEmptyArray.toJSON: () => { t: z.ZodTypes.array; type: object } - removed:
readonly property ZodArray.element: T - removed:
static property ZodArray.create: <T_1 extends z.ZodType<any, any>>(schema: T_1) => ZodArray<T_1>
- removed:
abstract class ZodType<Type, Def extends ZodTypeDef = ZodTypeDef> - removed:
abstract property ZodType.toJSON: () => object - removed:
constructor ZodType(def: Def) - removed:
enum ZodTypes - removed:
interface ZodTypeDef - removed:
member ZodTypes.any = 'any' - removed:
member ZodTypes.array = 'array' - removed:
member ZodTypes.bigint = 'bigint' - removed:
member ZodTypes.boolean = 'boolean' - removed:
member ZodTypes.date = 'date' - removed:
member ZodTypes.enum = 'enum' - removed:
member ZodTypes.function = 'function' - removed:
member ZodTypes.intersection = 'intersection' - removed:
member ZodTypes.keyof = 'keyof' - removed:
member ZodTypes.lazy = 'lazy' - removed:
member ZodTypes.literal = 'literal' - removed:
member ZodTypes.nativeEnum = 'nativeEnum' - removed:
member ZodTypes.null = 'null' - removed:
member ZodTypes.number = 'number' - removed:
member ZodTypes.object = 'object' - removed:
member ZodTypes.promise = 'promise' - removed:
member ZodTypes.record = 'record' - removed:
member ZodTypes.string = 'string' - removed:
member ZodTypes.tuple = 'tuple' - removed:
member ZodTypes.undefined = 'undefined' - removed:
member ZodTypes.union = 'union' - removed:
member ZodTypes.unknown = 'unknown' - removed:
member ZodTypes.void = 'void' - removed:
method ZodType.check(u: Type | unknown): u is Type - removed:
method ZodType.is(u: Type): u is Type - removed:
property ZodType._refinement: (refinement: InternalCheck<Type>) => this - removed:
property ZodType.array: () => ZodArray<this> - removed:
property ZodType.nullable: () => ZodUnion<[this, ZodNull]> - removed:
property ZodType.optional: () => ZodUnion<[this, ZodUndefined]> - removed:
property ZodType.or: <U extends ZodType<any>>(arg: U) => ZodUnion<[this, U]> - removed:
property ZodType.parse: (x: Type | unknown, params?: ParseParams) => Type - removed:
property ZodType.parseAsync: (x: Type | unknown, params?: ParseParams) => Promise<Type> - removed:
property ZodType.refine: <Func extends (arg: Type) => any>(check: Func, message?: string | Pick<Check<Type>, 'path' | 'message' | 'params'>) => this - removed:
property ZodType.refinement: (refinement: Check<Type>) => this - removed:
property ZodType.safeParse: (x: Type | unknown, params?: ParseParams) => { success: true; data: Type } | { success: false; error: ZodError } - removed:
property ZodTypeDef.accepts?: ZodType<any, any> - removed:
property ZodTypeDef.checks?: InternalCheck<any>[] - removed:
property ZodTypeDef.t: ZodTypes - removed:
readonly property ZodType._def: Def - removed:
readonly property ZodType._type: Type - removed:
type Infer<T extends { _type: any }> = T['_type'] - removed:
type TypeOf<T extends { _type: any }> = T['_type'] - removed:
type ZodRawShape = { [k: string]: ZodTypeAny } - removed:
type ZodTypeAny = ZodType<any, any>
- removed:
class ZodBigInt extends z.ZodType<bigint, ZodBigIntDef> - removed:
interface ZodBigIntDef extends z.ZodTypeDef - removed:
property ZodBigInt.toJSON: () => ZodBigIntDef - removed:
property ZodBigIntDef.t: z.ZodTypes.bigint - removed:
static property ZodBigInt.create: () => ZodBigInt
- removed:
class ZodBoolean extends z.ZodType<boolean, ZodBooleanDef> - removed:
interface ZodBooleanDef extends z.ZodTypeDef - removed:
property ZodBoolean.toJSON: () => ZodBooleanDef - removed:
property ZodBooleanDef.t: z.ZodTypes.boolean - removed:
static property ZodBoolean.create: () => ZodBoolean
- removed:
class ZodDate extends z.ZodType<Date, ZodDateDef> - removed:
interface ZodDateDef extends z.ZodTypeDef - removed:
property ZodDate.toJSON: () => ZodDateDef - removed:
property ZodDateDef.t: z.ZodTypes.date - removed:
static property ZodDate.create: () => ZodDate
- removed:
class ZodEnum<T extends [string, ...string[]]> extends z.ZodType<T[number], ZodEnumDef<T>> - removed:
interface ZodEnumDef<T extends EnumValues = EnumValues> extends z.ZodTypeDef - removed:
property ZodEnum.toJSON: () => ZodEnumDef<T> - removed:
property ZodEnumDef.t: z.ZodTypes.enum - removed:
property ZodEnumDef.values: T - removed:
readonly property ZodEnum.Enum: Values<T> - removed:
readonly property ZodEnum.Values: Values<T> - removed:
readonly property ZodEnum.enum: Values<T> - removed:
readonly property ZodEnum.options: T - removed:
static property ZodEnum.create: <U extends string, T_1 extends [U, ...U[]]>(values: T_1) => ZodEnum<T_1> - removed:
type ArrayKeys = keyof any[] - removed:
type Indices<T> = Exclude<keyof T, ArrayKeys>
- removed:
class ZodFunction<Args extends ZodTuple<any>, Returns extends z.ZodTypeAny> extends z.ZodType<TypeOfFunction<Args, Returns>, ZodFunctionDef> - removed:
interface ZodFunctionDef<Args extends ZodTuple<any> = ZodTuple<any>, Returns extends z.ZodTypeAny = z.ZodTypeAny> extends z.ZodTypeDef - removed:
property ZodFunction.args: <Items extends [z.ZodType<any, any>, ...z.ZodType<any, any>[]] | []>(...items: Items) => ZodFunction<ZodTuple<Items>, Returns> - removed:
property ZodFunction.implement: <F extends TypeOfFunction<Args, Returns>>(func: F) => F - removed:
property ZodFunction.returns: <NewReturnType extends z.ZodType<any, any>>(returnType: NewReturnType) => ZodFunction<Args, NewReturnType> - removed:
property ZodFunction.toJSON: () => { t: z.ZodTypes.function; args: { t: z.ZodTypes.tuple; items: any[] }; returns: object } - removed:
property ZodFunction.validate: <F extends TypeOfFunction<Args, Returns>>(func: F) => F - removed:
property ZodFunctionDef.args: Args - removed:
property ZodFunctionDef.returns: Returns - removed:
property ZodFunctionDef.t: z.ZodTypes.function - removed:
readonly property ZodFunction._def: ZodFunctionDef<Args, Returns> - removed:
readonly property ZodFunction._type: TypeOfFunction<Args, Returns> - removed:
static property ZodFunction.create: <T extends ZodTuple<any> = ZodTuple<[]>, U extends z.ZodType<any, any> = ZodUnknown>(args?: T | undefined, returns?: U | undefined) => ZodFunction<T, U> - removed:
type TypeOfFunction<Args extends ZodTuple<any>, Returns extends z.ZodTypeAny> = Args['_type'] extends Array<any> ? (...args: Args['_type']) => Returns['_type'] : never
- removed:
class ZodIntersection<T extends z.ZodTypeAny, U extends z.ZodTypeAny> extends z.ZodType<T['_type'] & U['_type'], ZodIntersectionDef<T, U>> - removed:
interface ZodIntersectionDef<T extends z.ZodTypeAny = z.ZodTypeAny, U extends z.ZodTypeAny = z.ZodTypeAny> extends z.ZodTypeDef - removed:
property ZodIntersection.toJSON: () => { t: z.ZodTypes.intersection; left: object; right: object } - removed:
property ZodIntersectionDef.left: T - removed:
property ZodIntersectionDef.right: U - removed:
property ZodIntersectionDef.t: z.ZodTypes.intersection - removed:
static property ZodIntersection.create: <T_1 extends z.ZodType<any, any>, U_1 extends z.ZodType<any, any>>(left: T_1, right: U_1) => ZodIntersection<T_1, U_1>
- removed:
class ZodKeyof<T extends EnumLike> extends z.ZodType<keyof T, ZodKeyofDef<T>> - removed:
interface ZodKeyofDef<T extends EnumLike = EnumLike> extends z.ZodTypeDef - removed:
property ZodKeyof.toJSON: () => object - removed:
property ZodKeyofDef.t: z.ZodTypes.keyof - removed:
property ZodKeyofDef.values: (keyof T)[] - removed:
static property ZodKeyof.create: <T_1 extends EnumLike>(object: T_1) => ZodKeyof<T_1>
- removed:
class ZodLazy<T extends z.ZodTypeAny> extends z.ZodType<z.TypeOf<T>, ZodLazyDef<T>> - removed:
interface ZodLazyDef<T extends z.ZodTypeAny = z.ZodTypeAny> extends z.ZodTypeDef - removed:
property ZodLazy.toJSON: () => never - removed:
property ZodLazyDef.getter: () => T - removed:
property ZodLazyDef.t: z.ZodTypes.lazy - removed:
readonly property ZodLazy.schema: T - removed:
static property ZodLazy.create: <T_1 extends z.ZodType<any, any>>(getter: () => T_1) => ZodLazy<T_1>
- removed:
class ZodLiteral<T extends any> extends z.ZodType<T, ZodLiteralDef<T>> - removed:
interface ZodLiteralDef<T extends any = any> extends z.ZodTypeDef - removed:
property ZodLiteral.toJSON: () => ZodLiteralDef<T> - removed:
property ZodLiteralDef.t: z.ZodTypes.literal - removed:
property ZodLiteralDef.value: T - removed:
static property ZodLiteral.create: <T_1 extends Primitive>(value: T_1) => ZodLiteral<T_1>
- removed:
class ZodNativeEnum<T extends EnumLike> extends z.ZodType<T[keyof T], ZodNativeEnumDef<T>> - removed:
interface ZodNativeEnumDef<T extends EnumLike = EnumLike> extends z.ZodTypeDef - removed:
property ZodNativeEnum.toJSON: () => ZodNativeEnumDef<T> - removed:
property ZodNativeEnumDef.t: z.ZodTypes.nativeEnum - removed:
property ZodNativeEnumDef.values: T - removed:
static property ZodNativeEnum.create: <T_1 extends EnumLike>(values: T_1) => ZodNativeEnum<T_1> - removed:
type EnumLike = { [k: string]: string | number; [nu: number]: string }
- removed:
class ZodNull extends z.ZodType<null, ZodNullDef> - removed:
interface ZodNullDef extends z.ZodTypeDef - removed:
property ZodNull.toJSON: () => ZodNullDef - removed:
property ZodNullDef.t: z.ZodTypes.null - removed:
static property ZodNull.create: () => ZodNull
- removed:
class ZodNumber extends z.ZodType<number, ZodNumberDef> - removed:
interface ZodNumberDef extends z.ZodTypeDef - removed:
property ZodNumber.int: (message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodNumber.max: (maximum: number, message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodNumber.min: (minimum: number, message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodNumber.negative: (message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodNumber.nonnegative: (message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodNumber.nonpositive: (message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodNumber.positive: (message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodNumber.toJSON: () => ZodNumberDef - removed:
property ZodNumberDef.t: z.ZodTypes.number - removed:
static property ZodNumber.create: () => ZodNumber
- removed:
class ZodObject<T extends z.ZodRawShape, Params extends ZodObjectParams = { strict: true }, Type extends ZodObjectType<T, Params> = ZodObjectType<T, Params>> extends z.ZodType<Type, ZodObjectDef<T, Params>> - removed:
interface ZodObjectDef<T extends z.ZodRawShape = z.ZodRawShape, Params extends ZodObjectParams = ZodObjectParams> extends z.ZodTypeDef - removed:
property ZodObject.augment: <Augmentation extends z.ZodRawShape>(augmentation: Augmentation) => ZodObject<{ [k in Exclude<keyof T, keyof Augmentation>]: T[k] } & { [k in keyof Augmentation]: Augmentation[k] }, Params, ZodObjectType<{ [k in Exclude<keyof T, keyof Augmentation>]: T[k] } & { [k in keyof Augmentation]: Augmentation[k] }, Params>> - removed:
property ZodObject.deepPartial: () => partialUtil.RootDeepPartial<this> - removed:
property ZodObject.extend: <Augmentation extends z.ZodRawShape>(augmentation: Augmentation) => ZodObject<{ [k in Exclude<keyof T, keyof Augmentation>]: T[k] } & { [k in keyof Augmentation]: Augmentation[k] }, Params, ZodObjectType<{ [k in Exclude<keyof T, keyof Augmentation>]: T[k] } & { [k in keyof Augmentation]: Augmentation[k] }, Params>> - removed:
property ZodObject.merge: <MergeShape extends z.ZodRawShape, MergeParams extends ZodObjectParams>(other: ZodObject<MergeShape, MergeParams>) => ZodObject<T & MergeShape, objectUtil.MergeObjectParams<Params, MergeParams>> - removed:
property ZodObject.nonprimitives: () => ZodObject<{ [k in { [k in keyof { [k in keyof T]: [T[k]['_type']] extends [Scalars] ? never : T[k] }]: [{ [k in keyof T]: [T[k]['_type']] extends [Scalars] ? never : T[k] }[k]] extends [never] ? never : k }[keyof T]]: k extends keyof T ? { [k in keyof T]: [T[k]['_type']] extends [Scalars] ? never : T[k] }[k] : never }, Params, ZodObjectType<{ [k in { [k in… - removed:
property ZodObject.nonstrict: () => ZodObject<T, objectUtil.Flatten<{ [k in Exclude<keyof Params, 'strict'>]: Params[k] } & { strict: false }>, ZodObjectType<T, objectUtil.Flatten<{ [k in Exclude<keyof Params, 'strict'>]: Params[k] } & { strict: false }>>> - removed:
property ZodObject.omit: <Mask extends { [k in keyof T]?: true | undefined }>(mask: Mask) => ZodObject<{ [k in { [k in keyof { [k in keyof T]: k extends keyof Mask ? never : T[k] }]: [{ [k in keyof T]: k extends keyof Mask ? never : T[k] }[k]] extends [never] ? never : k }[keyof T]]: k extends keyof T ? { [k in keyof T]: k extends keyof Mask ? never : T[k] }[k] : never }, Params, ZodObjectType<{… - removed:
property ZodObject.partial: () => ZodObject<{ [k in keyof T]: ZodUnion<[T[k], ZodUndefined]> }, Params, ZodObjectType<{ [k in keyof T]: ZodUnion<[T[k], ZodUndefined]> }, Params>> - removed:
property ZodObject.pick: <Mask extends { [k in keyof T]?: true | undefined }>(mask: Mask) => ZodObject<{ [k in { [k in keyof { [k in keyof Mask]: k extends keyof T ? T[k] : never }]: [{ [k in keyof Mask]: k extends keyof T ? T[k] : never }[k]] extends [never] ? never : k }[keyof Mask]]: k extends keyof Mask ? { [k in keyof Mask]: k extends keyof T ? T[k] : never }[k] : never }, Params, ZodObjectT… - removed:
property ZodObject.primitives: () => ZodObject<{ [k in { [k in keyof { [k in keyof T]: [T[k]['_type']] extends [Scalars] ? T[k] : never }]: [{ [k in keyof T]: [T[k]['_type']] extends [Scalars] ? T[k] : never }[k]] extends [never] ? never : k }[keyof T]]: k extends keyof T ? { [k in keyof T]: [T[k]['_type']] extends [Scalars] ? T[k] : never }[k] : never }, Params, ZodObjectType<{ [k in { [k in key… - removed:
property ZodObject.toJSON: () => { t: z.ZodTypes.object; shape: { [x: string]: any }[] } - removed:
property ZodObjectDef.params: Params - removed:
property ZodObjectDef.shape: () => T - removed:
property ZodObjectDef.t: z.ZodTypes.object - removed:
readonly property ZodObject._params: Params - removed:
readonly property ZodObject._shape: T - removed:
readonly property ZodObject.params: Params - removed:
readonly property ZodObject.shape: T - removed:
static property ZodObject.create: <T_1 extends z.ZodRawShape>(shape: T_1) => ZodObject<T_1, { strict: true }, { [k in keyof ({ [k in { [k in keyof { [k in keyof T_1]: T_1[k]['_type'] }]: undefined extends { [k in keyof T_1]: T_1[k]['_type'] }[k] ? k : never }[keyof T_1]]?: { [k in keyof T_1]: T_1[k]['_type'] }[k] | undefined } & { [k in Exclude<keyof T_1, { [k in keyof { [k in keyof T_1]: T_1[k][… - removed:
static property ZodObject.lazycreate: <T_1 extends z.ZodRawShape>(shape: () => T_1) => ZodObject<T_1, { strict: true }, { [k in keyof ({ [k in { [k in keyof { [k in keyof T_1]: T_1[k]['_type'] }]: undefined extends { [k in keyof T_1]: T_1[k]['_type'] }[k] ? k : never }[keyof T_1]]?: { [k in keyof T_1]: T_1[k]['_type'] }[k] | undefined } & { [k in Exclude<keyof T_1, { [k in keyof { [k in keyof T_1… - removed:
type Scalars = string | string[] | number | number[] | boolean | boolean[] | bigint | bigint[] | undefined | null
- removed:
class ZodPromise<T extends z.ZodTypeAny> extends z.ZodType<Promise<T['_type']>, ZodPromiseDef<T>> - removed:
interface ZodPromiseDef<T extends z.ZodTypeAny = z.ZodTypeAny> extends z.ZodTypeDef - removed:
property ZodPromise.toJSON: () => { t: z.ZodTypes.promise; type: object } - removed:
property ZodPromiseDef.t: z.ZodTypes.promise - removed:
property ZodPromiseDef.type: T - removed:
static property ZodPromise.create: <T_1 extends z.ZodType<any, any>>(schema: T_1) => ZodPromise<T_1>
- removed:
class ZodRecord<Value extends z.ZodTypeAny = z.ZodTypeAny> extends z.ZodType<Record<string, Value['_type']>, ZodRecordDef<Value>> - removed:
interface ZodRecordDef<Value extends z.ZodTypeAny = z.ZodTypeAny> extends z.ZodTypeDef - removed:
property ZodRecord.toJSON: () => { t: z.ZodTypes.record; valueType: object } - removed:
property ZodRecordDef.t: z.ZodTypes.record - removed:
property ZodRecordDef.valueType: Value - removed:
readonly property ZodRecord._value: Value - removed:
static property ZodRecord.create: <Value_1 extends z.ZodType<any, any> = z.ZodType<any, any>>(valueType: Value_1) => ZodRecord<Value_1>
- removed:
class ZodString extends z.ZodType<string, ZodStringDef> - removed:
interface ZodStringDef extends z.ZodTypeDef - removed:
method ZodString.length(len: number, message?: errorUtil.ErrMessage): this - removed:
property ZodString._regex: (regex: RegExp, validation: StringValidation, message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodString.email: (message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodString.max: (maxLength: number, message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodString.min: (minLength: number, message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodString.nonempty: (message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodString.regex: (regexp: RegExp, message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodString.toJSON: () => ZodStringDef - removed:
property ZodString.url: (message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodString.uuid: (message?: string | { message?: string | undefined } | undefined) => this - removed:
property ZodStringDef.t: z.ZodTypes.string - removed:
property ZodStringDef.validation: { uuid?: true; custom?: ((val: any) => boolean)[] } - removed:
static property ZodString.create: () => ZodString
- removed:
class ZodTuple<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]] | [] = [z.ZodTypeAny, ...z.ZodTypeAny[]]> extends z.ZodType<TypeOfTuple<T>, ZodTupleDef<T>> - removed:
interface ZodTupleDef<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]] | [] = [z.ZodTypeAny, ...z.ZodTypeAny[]]> extends z.ZodTypeDef - removed:
property ZodTuple.toJSON: () => { t: z.ZodTypes.tuple; items: any[] } - removed:
property ZodTupleDef.items: T - removed:
property ZodTupleDef.t: z.ZodTypes.tuple - removed:
static property ZodTuple.create: <T_1 extends [z.ZodType<any, any>, ...z.ZodType<any, any>[]] | []>(schemas: T_1) => ZodTuple<T_1> - removed:
type TypeOfTuple<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]] | []> = { [k in keyof T]: T[k] extends z.ZodType<infer U> ? U : never }
- removed:
class ZodUndefined extends z.ZodType<undefined> - removed:
interface ZodUndefinedDef extends z.ZodTypeDef - removed:
property ZodUndefined.toJSON: () => z.ZodTypeDef - removed:
property ZodUndefinedDef.t: z.ZodTypes.undefined - removed:
static property ZodUndefined.create: () => ZodUndefined
- removed:
class ZodUnion<T extends [z.ZodTypeAny, z.ZodTypeAny, ...z.ZodTypeAny[]]> extends z.ZodType<T[number]['_type'], ZodUnionDef<T>> - removed:
interface ZodUnionDef<T extends [z.ZodTypeAny, z.ZodTypeAny, ...z.ZodTypeAny[]] = [z.ZodTypeAny, z.ZodTypeAny, ...z.ZodTypeAny[]]> extends z.ZodTypeDef - removed:
property ZodUnion.toJSON: () => object - removed:
property ZodUnionDef.options: T - removed:
property ZodUnionDef.t: z.ZodTypes.union - removed:
static property ZodUnion.create: <T_1 extends [z.ZodType<any, any>, z.ZodType<any, any>, ...z.ZodType<any, any>[]]>(types: T_1) => ZodUnion<T_1>
- removed:
class ZodUnknown extends z.ZodType<unknown, ZodUnknownDef> - removed:
interface ZodUnknownDef extends z.ZodTypeDef - removed:
property ZodUnknown.toJSON: () => ZodUnknownDef - removed:
property ZodUnknownDef.t: z.ZodTypes.unknown - removed:
static property ZodUnknown.create: () => ZodUnknown
- removed:
class ZodVoid extends z.ZodType<void, ZodVoidDef> - removed:
interface ZodVoidDef extends z.ZodTypeDef - removed:
property ZodVoid.toJSON: () => ZodVoidDef - removed:
property ZodVoidDef.t: z.ZodTypes.void - removed:
static property ZodVoid.create: () => ZodVoid
- added:
class ZodError<T = any> extends Error - added:
const ZodIssueCode: { invalid_type: 'invalid_type'; invalid_literal: 'invalid_literal'; custom: 'custom'; invalid_union: 'invalid_union'; invalid_union_discriminator: 'invalid_uni… - added:
const quotelessJson: (obj: any) => string - added:
constructor ZodError(issues: ZodIssue[]) - added:
get ZodError.errors(): ZodIssue[] - added:
get ZodError.formErrors(): typeToFlattenedError<T, string> - added:
get ZodError.isEmpty(): boolean - added:
get ZodError.message(): string - added:
interface ZodCustomIssue extends ZodIssueBase - added:
interface ZodInvalidArgumentsIssue extends ZodIssueBase - added:
interface ZodInvalidDateIssue extends ZodIssueBase - added:
interface ZodInvalidEnumValueIssue extends ZodIssueBase - added:
interface ZodInvalidIntersectionTypesIssue extends ZodIssueBase - added:
interface ZodInvalidLiteralIssue extends ZodIssueBase - added:
interface ZodInvalidReturnTypeIssue extends ZodIssueBase - added:
interface ZodInvalidStringIssue extends ZodIssueBase - added:
interface ZodInvalidTypeIssue extends ZodIssueBase - added:
interface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase - added:
interface ZodInvalidUnionIssue extends ZodIssueBase - added:
interface ZodNotFiniteIssue extends ZodIssueBase - added:
interface ZodNotMultipleOfIssue extends ZodIssueBase - added:
interface ZodTooBigIssue extends ZodIssueBase - added:
interface ZodTooSmallIssue extends ZodIssueBase - added:
interface ZodUnrecognizedKeysIssue extends ZodIssueBase - added:
method ZodError.flatten(): typeToFlattenedError<T> - added:
method ZodError.flatten<U>(mapper?: (issue: ZodIssue) => U): typeToFlattenedError<T, U> - added:
method ZodError.format(): ZodFormattedError<T> - added:
method ZodError.format<U>(mapper: (issue: ZodIssue) => U): ZodFormattedError<T, U> - added:
method ZodError.toString(): string - added:
property ZodCustomIssue.code: typeof ZodIssueCode.custom - added:
property ZodCustomIssue.params?: { [k: string]: any } - added:
property ZodError.addIssue: (sub: ZodIssue) => void - added:
property ZodError.addIssues: (subs?: ZodIssue[]) => void - added:
property ZodError.issues: ZodIssue[] - added:
property ZodInvalidArgumentsIssue.argumentsError: ZodError - added:
property ZodInvalidArgumentsIssue.code: typeof ZodIssueCode.invalid_arguments - added:
property ZodInvalidDateIssue.code: typeof ZodIssueCode.invalid_date - added:
property ZodInvalidEnumValueIssue.code: typeof ZodIssueCode.invalid_enum_value - added:
property ZodInvalidEnumValueIssue.options: (string | number)[] - added:
property ZodInvalidEnumValueIssue.received: string | number - added:
property ZodInvalidIntersectionTypesIssue.code: typeof ZodIssueCode.invalid_intersection_types - added:
property ZodInvalidLiteralIssue.code: typeof ZodIssueCode.invalid_literal - added:
property ZodInvalidLiteralIssue.expected: unknown - added:
property ZodInvalidLiteralIssue.received: unknown - added:
property ZodInvalidReturnTypeIssue.code: typeof ZodIssueCode.invalid_return_type - added:
property ZodInvalidReturnTypeIssue.returnTypeError: ZodError - added:
property ZodInvalidStringIssue.code: typeof ZodIssueCode.invalid_string - added:
property ZodInvalidStringIssue.validation: StringValidation - added:
property ZodInvalidTypeIssue.code: typeof ZodIssueCode.invalid_type - added:
property ZodInvalidTypeIssue.expected: ZodParsedType - added:
property ZodInvalidTypeIssue.received: ZodParsedType - added:
property ZodInvalidUnionDiscriminatorIssue.code: typeof ZodIssueCode.invalid_union_discriminator - added:
property ZodInvalidUnionDiscriminatorIssue.options: Primitive[] - added:
property ZodInvalidUnionIssue.code: typeof ZodIssueCode.invalid_union - added:
property ZodInvalidUnionIssue.unionErrors: ZodError[] - added:
property ZodNotFiniteIssue.code: typeof ZodIssueCode.not_finite - added:
property ZodNotMultipleOfIssue.code: typeof ZodIssueCode.not_multiple_of - added:
property ZodNotMultipleOfIssue.multipleOf: number | bigint - added:
property ZodTooBigIssue.code: typeof ZodIssueCode.too_big - added:
property ZodTooBigIssue.exact?: boolean - added:
property ZodTooBigIssue.inclusive: boolean - added:
property ZodTooBigIssue.maximum: number | bigint - added:
property ZodTooBigIssue.type: 'array' | 'string' | 'number' | 'set' | 'date' | 'bigint' - added:
property ZodTooSmallIssue.code: typeof ZodIssueCode.too_small - added:
property ZodTooSmallIssue.exact?: boolean - added:
property ZodTooSmallIssue.inclusive: boolean - added:
property ZodTooSmallIssue.minimum: number | bigint - added:
property ZodTooSmallIssue.type: 'array' | 'string' | 'number' | 'set' | 'date' | 'bigint' - added:
property ZodUnrecognizedKeysIssue.code: typeof ZodIssueCode.unrecognized_keys - added:
property ZodUnrecognizedKeysIssue.keys: string[] - added:
static method ZodError.assert(value: unknown): asserts value is ZodError - added:
static property ZodError.create: (issues: ZodIssue[]) => ZodError<any> - added:
type DenormalizedError = { [k: string]: DenormalizedError | string[] } - added:
type ErrorMapCtx = { defaultError: string; data: any } - added:
type IssueData = stripPath<ZodIssueOptionalMessage> & { path?: (string | number)[]; fatal?: boolean | undefined } - added:
type StringValidation = 'email' | 'url' | 'emoji' | 'uuid' | 'nanoid' | 'regex' | 'cuid' | 'cuid2' | 'ulid' | 'datetime' | 'date' | 'time' | 'duration' | 'ip' | 'cidr' | 'base64' | 'j… - added:
type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => { message: string } - added:
type ZodFormattedError<T, U = string> = { _errors: U[] } & recursiveZodFormattedError<NonNullable<T>> - added:
type ZodIssue = ZodIssueOptionalMessage & { fatal?: boolean | undefined; message: string } - added:
type ZodIssueBase = { path: (string | number)[]; message?: string | undefined } - added:
type ZodIssueCode = keyof typeof ZodIssueCode - added:
type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue |… - added:
type inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = typeToFlattenedError<TypeOf<T>, U> - added:
type inferFormattedError<T extends ZodType<any, any, any>, U = string> = ZodFormattedError<TypeOf<T>, U> - added:
type typeToFlattenedError<T, U = string> = { formErrors: U[]; fieldErrors: { [P in allKeys<T>]?: U[] } }
- added:
export { defaultErrorMap } - added:
function getErrorMap(): ZodErrorMap - added:
function setErrorMap(map: ZodErrorMap): void
- added:
export * from './ZodError' - added:
export * from './errors' - added:
export * from './helpers/parseUtil' - added:
export * from './helpers/typeAliases' - added:
export * from './helpers/util' - added:
export * from './types'
- added:
namespace enumUtil - added:
type enumUtil.CastToStringTuple<T> = T extends [string, ...string[]] ? T : never - added:
type enumUtil.GetUnionLast<T> = UnionToIntersectionFn<T> extends () => infer Last ? Last : never - added:
type enumUtil.UnionToIntersectionFn<T> = (T extends unknown ? (k: () => T) => void : never) extends (k: infer Intersection) => void ? Intersection : never - added:
type enumUtil.UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never] ? Tuple : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]> - added:
type enumUtil.UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>
- added:
const errorUtil.errToObj: (message?: ErrMessage) => { message?: string | undefined } - added:
const errorUtil.toString: (message?: ErrMessage) => string | undefined - added:
namespace errorUtil - added:
type errorUtil.ErrMessage = string | { message?: string | undefined }
- added:
class ParseStatus - added:
const DIRTY: <T>(value: T) => DIRTY<T> - added:
const EMPTY_PATH: ParsePath - added:
const INVALID: INVALID - added:
const OK: <T>(value: T) => OK<T> - added:
const isAborted: (x: ParseReturnType<any>) => x is INVALID - added:
const isAsync: <T>(x: ParseReturnType<T>) => x is AsyncParseReturnType<T> - added:
const isDirty: <T>(x: ParseReturnType<T>) => x is OK<T> | DIRTY<T> - added:
const isValid: <T>(x: ParseReturnType<T>) => x is OK<T> - added:
const makeIssue: (params: { data: any; path: (string | number)[]; errorMaps: ZodErrorMap[]; issueData: IssueData }) => ZodIssue - added:
function addIssueToContext(ctx: ParseContext, issueData: IssueData): void - added:
interface ParseContext - added:
interface ParseResult - added:
method ParseStatus.abort(): void - added:
method ParseStatus.dirty(): void - added:
property ParseResult.data: any - added:
property ParseResult.status: 'aborted' | 'dirty' | 'valid' - added:
property ParseStatus.value: 'aborted' | 'dirty' | 'valid' - added:
readonly property ParseContext.common: { readonly issues: ZodIssue[]; readonly contextualErrorMap?: ZodErrorMap | undefined; readonly async: boolean } - added:
readonly property ParseContext.data: any - added:
readonly property ParseContext.parent: ParseContext | null - added:
readonly property ParseContext.parsedType: ZodParsedType - added:
readonly property ParseContext.path: ParsePath - added:
readonly property ParseContext.schemaErrorMap?: ZodErrorMap | undefined - added:
static method ParseStatus.mergeArray(status: ParseStatus, results: SyncParseReturnType<any>[]): SyncParseReturnType - added:
static method ParseStatus.mergeObjectAsync(status: ParseStatus, pairs: { key: ParseReturnType<any>; value: ParseReturnType<any> }[]): Promise<SyncParseReturnType<any>> - added:
static method ParseStatus.mergeObjectSync(status: ParseStatus, pairs: { key: SyncParseReturnType<any>; value: SyncParseReturnType<any>; alwaysSet?: boolean }[]): SyncParseReturnType - added:
type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>> - added:
type DIRTY<T> = { status: 'dirty'; value: T } - added:
type INVALID = { status: 'aborted' } - added:
type OK<T> = { status: 'valid'; value: T } - added:
type ObjectPair = { key: SyncParseReturnType<any>; value: SyncParseReturnType<any> } - added:
type ParseInput = { data: any; path: (string | number)[]; parent: ParseContext } - added:
type ParseParams = { path: (string | number)[]; errorMap: ZodErrorMap; async: boolean } - added:
type ParsePath = ParsePathComponent[] - added:
type ParsePathComponent = string | number - added:
type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T> - added:
type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID
- added:
namespace partialUtil - added:
type partialUtil.DeepPartial<T extends ZodTypeAny> = T extends ZodObject<ZodRawShape> ? ZodObject<{ [k in keyof T['shape']]: ZodOptional<DeepPartial<T['shape'][k]>> }, T['_def']['unknownKeys'], T['_def']['catchal…
- added:
type Primitive = string | number | symbol | bigint | boolean | null | undefined - added:
type Scalars = Primitive | Primitive[]
- added:
const ZodParsedType: { string: 'string'; nan: 'nan'; number: 'number'; integer: 'integer'; float: 'float'; boolean: 'boolean'; date: 'date'; bigint: 'bigint'; symbol: 'symbol'; fun… - added:
const getParsedType: (data: any) => ZodParsedType - added:
const objectUtil.mergeShapes: <U, T>(first: U, second: T) => T & U - added:
const util.arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k } - added:
const util.assertEqual: <A, B>(_: AssertEqual<A, B>) => void - added:
const util.find: <T>(arr: T[], checker: (arg: T) => any) => T | undefined - added:
const util.getValidEnumValues: (obj: any) => any[] - added:
const util.isInteger: NumberConstructor['isInteger'] - added:
const util.jsonStringifyReplacer: (_: string, value: any) => any - added:
const util.objectKeys: ObjectConstructor['keys'] - added:
const util.objectValues: (obj: any) => any[] - added:
function util.assertIs<T>(_arg: T): void - added:
function util.assertNever(_x: never): never - added:
function util.joinValues<T extends any[]>(array: T, separator?: string): string - added:
namespace objectUtil - added:
namespace util - added:
type ZodParsedType = keyof typeof ZodParsedType - added:
type objectUtil.MergeShapes<U, V> = keyof U & keyof V extends never ? U & V : { [k in Exclude<keyof U, keyof V>]: U[k] } & V - added:
type objectUtil.addQuestionMarks<T extends object, _O = any> = { [K in requiredKeys<T>]: T[K] } & { [K in optionalKeys<T>]?: T[K] } & { [k in keyof T]?: unknown } - added:
type objectUtil.extendShape<A extends object, B extends object> = keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K] } & { [K in keyof B]: B[K] } - added:
type objectUtil.flatten<T> = identity<{ [k in keyof T]: T[k] }> - added:
type objectUtil.identity<T> = T - added:
type objectUtil.noNever<T> = identity<{ [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never }> - added:
type objectUtil.noNeverKeys<T> = { [k in keyof T]: [T[k]] extends [never] ? never : k }[keyof T] - added:
type objectUtil.optionalKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? k : never }[keyof T] - added:
type objectUtil.requiredKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? never : k }[keyof T] - added:
type util.AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false - added:
type util.Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never> - added:
type util.InexactPartial<T> = { [k in keyof T]?: T[k] | undefined } - added:
type util.MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>> - added:
type util.Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> - added:
type util.OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>> - added:
type util.flatten<T> = objectUtil.flatten<T> - added:
type util.identity<T> = objectUtil.identity<T> - added:
type util.isAny<T> = 0 extends 1 & T ? true : false - added:
type util.noUndefined<T> = T extends undefined ? never : T
- added:
default z - added:
export * from './external' - added:
export { z }
- added:
const errorMap: ZodErrorMap - added:
default errorMap
- added:
interface StandardSchemaV1.FailureResult - added:
interface StandardSchemaV1.Issue - added:
interface StandardSchemaV1.PathSegment - added:
interface StandardSchemaV1.Props<Input = unknown, Output = Input> - added:
interface StandardSchemaV1.SuccessResult<Output> - added:
interface StandardSchemaV1.Types<Input = unknown, Output = Input> - added:
namespace StandardSchemaV1 - added:
readonly property StandardSchemaV1.FailureResult.issues: ReadonlyArray<Issue> - added:
readonly property StandardSchemaV1.Issue.message: string - added:
readonly property StandardSchemaV1.Issue.path?: ReadonlyArray<PropertyKey | PathSegment> | undefined - added:
readonly property StandardSchemaV1.PathSegment.key: PropertyKey - added:
readonly property StandardSchemaV1.Props.types?: Types<Input, Output> | undefined - added:
readonly property StandardSchemaV1.Props.validate: (value: unknown) => Result<Output> | Promise<Result<Output>> - added:
readonly property StandardSchemaV1.Props.vendor: string - added:
readonly property StandardSchemaV1.Props.version: 1 - added:
readonly property StandardSchemaV1.SuccessResult.issues?: undefined - added:
readonly property StandardSchemaV1.SuccessResult.value: Output - added:
readonly property StandardSchemaV1.Types.input: Input - added:
readonly property StandardSchemaV1.Types.output: Output - added:
type StandardSchemaV1.InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['input'] - added:
type StandardSchemaV1.InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['output'] - added:
type StandardSchemaV1.Result<Output> = SuccessResult<Output> | FailureResult - added:
type StandardSchemaV1<Input = unknown, Output = Input> = { readonly '~standard': StandardSchemaV1.Props<Input, Output> }
- added:
abstract class Schema<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> - added:
abstract class ZodSchema<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> - added:
abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> - added:
abstract method Schema._parse(input: ParseInput): ParseReturnType<Output> - added:
abstract method ZodSchema._parse(input: ParseInput): ParseReturnType<Output> - added:
abstract method ZodType._parse(input: ParseInput): ParseReturnType<Output> - added:
class ZodAny extends ZodType<any, ZodAnyDef, any> - added:
class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> extends ZodType<arrayOutputType<T, Cardinality>, ZodArrayDef<T>, Cardinality extends 'atleastone' ? [T['_input'], ...T['_input'][]] : T['_input'][]> - added:
class ZodBigInt extends ZodType<bigint, ZodBigIntDef, bigint> - added:
class ZodBoolean extends ZodType<boolean, ZodBooleanDef, boolean> - added:
class ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> extends ZodType<T['_output'] & BRAND<B>, ZodBrandedDef<T>, T['_input']> - added:
class ZodCatch<T extends ZodTypeAny> extends ZodType<T['_output'], ZodCatchDef<T>, unknown> - added:
class ZodDate extends ZodType<Date, ZodDateDef, Date> - added:
class ZodDefault<T extends ZodTypeAny> extends ZodType<util.noUndefined<T['_output']>, ZodDefaultDef<T>, T['_input'] | undefined> - added:
class ZodDiscriminatedUnion<Discriminator extends string, Options extends readonly ZodDiscriminatedUnionOption<Discriminator>[]> extends ZodType<output<Options[number]>, ZodDiscriminatedUnionDef<Discriminator, Options>, input<Options[number]>> - added:
class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> extends ZodType<Output, ZodEffectsDef<T>, Input> - added:
class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number], ZodEnumDef<T>, T[number]> - added:
class ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> extends ZodType<OuterTypeOfFunction<Args, Returns>, ZodFunctionDef<Args, Returns>, InnerTypeOfFunction<Args, Returns>> - added:
class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extends ZodType<T['_output'] & U['_output'], ZodIntersectionDef<T, U>, T['_input'] & U['_input']> - added:
class ZodLazy<T extends ZodTypeAny> extends ZodType<output<T>, ZodLazyDef<T>, input<T>> - added:
class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>, T> - added:
class ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<Map<Key['_output'], Value['_output']>, ZodMapDef<Key, Value>, Map<Key['_input'], Value['_input']>> - added:
class ZodNaN extends ZodType<number, ZodNaNDef, number> - added:
class ZodNativeEnum<T extends EnumLike> extends ZodType<T[keyof T], ZodNativeEnumDef<T>, T[keyof T]> - added:
class ZodNever extends ZodType<never, ZodNeverDef, never> - added:
class ZodNull extends ZodType<null, ZodNullDef, null> - added:
class ZodNullable<T extends ZodTypeAny> extends ZodType<T['_output'] | null, ZodNullableDef<T>, T['_input'] | null> - added:
class ZodNumber extends ZodType<number, ZodNumberDef, number> - added:
class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny, Output = objectOutputType<T, Catchall, UnknownKeys>, Input = objectInputType<T, Catchall, UnknownKeys>> extends ZodType<Output, ZodObjectDef<T, UnknownKeys, Catchall>, Input> - added:
class ZodOptional<T extends ZodTypeAny> extends ZodType<T['_output'] | undefined, ZodOptionalDef<T>, T['_input'] | undefined> - added:
class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodType<B['_output'], ZodPipelineDef<A, B>, A['_input']> - added:
class ZodPromise<T extends ZodTypeAny> extends ZodType<Promise<T['_output']>, ZodPromiseDef<T>, Promise<T['_input']>> - added:
class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T['_output']>, ZodReadonlyDef<T>, MakeReadonly<T['_input']>> - added:
class ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<RecordType<Key['_output'], Value['_output']>, ZodRecordDef<Key, Value>, RecordType<Key['_input'], Value['_input']>> - added:
class ZodSet<Value extends ZodTypeAny = ZodTypeAny> extends ZodType<Set<Value['_output']>, ZodSetDef<Value>, Set<Value['_input']>> - added:
class ZodString extends ZodType<string, ZodStringDef, string> - added:
class ZodSymbol extends ZodType<symbol, ZodSymbolDef, symbol> - added:
class ZodTransformer<T extends ZodTypeAny, Output = output<T>, Input = input<T>> extends ZodType<Output, ZodEffectsDef<T>, Input> - added:
class ZodTuple<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> - added:
class ZodUndefined extends ZodType<undefined, ZodUndefinedDef, undefined> - added:
class ZodUnion<T extends ZodUnionOptions> extends ZodType<T[number]['_output'], ZodUnionDef<T>, T[number]['_input']> - added:
class ZodUnknown extends ZodType<unknown, ZodUnknownDef, unknown> - added:
class ZodVoid extends ZodType<void, ZodVoidDef, void> - added:
const BRAND: unique symbol - added:
const NEVER: never - added:
const any: (params?: RawCreateParams) => ZodAny - added:
const array: <El extends ZodTypeAny>(schema: El, params?: RawCreateParams) => ZodArray<El> - added:
const bigint: (params?: RawCreateParams & { coerce?: boolean }) => ZodBigInt - added:
const boolean: (params?: RawCreateParams & { coerce?: boolean }) => ZodBoolean - added:
const coerce: { string: (typeof ZodString)['create']; number: (typeof ZodNumber)['create']; boolean: (typeof ZodBoolean)['create']; bigint: (typeof ZodBigInt)['create']; dat… - added:
const date: (params?: RawCreateParams & { coerce?: boolean }) => ZodDate - added:
const discriminatedUnion: typeof ZodDiscriminatedUnion.create - added:
const effect: <I extends ZodTypeAny>(schema: I, effect: Effect<I['_output']>, params?: RawCreateParams) => ZodEffects<I, I['_output']> - added:
const enum: typeof createZodEnum - added:
const function: typeof ZodFunction.create - added:
const instanceof: <T extends typeof Class>(cls: T, params?: CustomParams) => ZodType<InstanceType<T>, ZodTypeDef, InstanceType<T>> - added:
const intersection: <TSchema extends ZodTypeAny, USchema extends ZodTypeAny>(left: TSchema, right: USchema, params?: RawCreateParams) => ZodIntersection<TSchema, USchema> - added:
const late: { object: <Shape extends ZodRawShape>(shape: () => Shape, params?: RawCreateParams) => ZodObject<Shape, 'strip'> } - added:
const lazy: <Inner extends ZodTypeAny>(getter: () => Inner, params?: RawCreateParams) => ZodLazy<Inner> - added:
const literal: <Value extends Primitive>(value: Value, params?: RawCreateParams) => ZodLiteral<Value> - added:
const map: <KeySchema extends ZodTypeAny = ZodTypeAny, ValueSchema extends ZodTypeAny = ZodTypeAny>(keyType: KeySchema, valueType: ValueSchema, params?: RawCreateParams)… - added:
const nan: (params?: RawCreateParams) => ZodNaN - added:
const nativeEnum: <Elements extends EnumLike>(values: Elements, params?: RawCreateParams) => ZodNativeEnum<Elements> - added:
const never: (params?: RawCreateParams) => ZodNever - added:
const null: (params?: RawCreateParams) => ZodNull - added:
const nullable: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodNullable<Inner> - added:
const number: (params?: RawCreateParams & { coerce?: boolean }) => ZodNumber - added:
const object: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, 'strip', ZodTypeAny, objectOutputType<Shape, ZodTypeAny, 'strip'>, obje… - added:
const oboolean: () => ZodOptional<ZodBoolean> - added:
const onumber: () => ZodOptional<ZodNumber> - added:
const optional: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodOptional<Inner> - added:
const ostring: () => ZodOptional<ZodString> - added:
const pipeline: typeof ZodPipeline.create - added:
const preprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I['_output'], unknown> - added:
const promise: <Inner extends ZodTypeAny>(schema: Inner, params?: RawCreateParams) => ZodPromise<Inner> - added:
const record: typeof ZodRecord.create - added:
const set: <ValueSchema extends ZodTypeAny = ZodTypeAny>(valueType: ValueSchema, params?: RawCreateParams) => ZodSet<ValueSchema> - added:
const strictObject: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, 'strict'> - added:
const string: (params?: RawCreateParams & { coerce?: true }) => ZodString - added:
const symbol: (params?: RawCreateParams) => ZodSymbol - added:
const transformer: <I extends ZodTypeAny>(schema: I, effect: Effect<I['_output']>, params?: RawCreateParams) => ZodEffects<I, I['_output']> - added:
const tuple: <Items extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: Items, params?: RawCreateParams) => ZodTuple<Items, null> - added:
const undefined: (params?: RawCreateParams) => ZodUndefined - added:
const union: <Options extends Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>>(types: Options, params?: RawCreateParams) => ZodUnion<Options> - added:
const unknown: (params?: RawCreateParams) => ZodUnknown - added:
const void: (params?: RawCreateParams) => ZodVoid - added:
constructor Schema(def: Def) - added:
constructor ZodSchema(def: Def) - added:
constructor ZodType(def: Def) - added:
enum ZodFirstPartyTypeKind - added:
function custom<T>(check?: (data: any) => any, _params?: string | CustomParams | ((input: any) => CustomParams), fatal?: boolean): ZodType<T, ZodTypeDef, T> - added:
function datetimeRegex(args: { precision?: number | null; offset?: boolean; local?: boolean }): RegExp - added:
get Schema.description(): string | undefined - added:
get ZodArray.element(): T - added:
get ZodBigInt.maxValue(): bigint | null - added:
get ZodBigInt.minValue(): bigint | null - added:
get ZodDate.maxDate(): Date | null - added:
get ZodDate.minDate(): Date | null - added:
get ZodDiscriminatedUnion.discriminator(): Discriminator - added:
get ZodDiscriminatedUnion.options(): Options - added:
get ZodDiscriminatedUnion.optionsMap(): Map<Primitive, ZodDiscriminatedUnionOption<any>> - added:
get ZodEnum.Enum(): Values<T> - added:
get ZodEnum.Values(): Values<T> - added:
get ZodEnum.enum(): Values<T> - added:
get ZodEnum.options(): T - added:
get ZodLazy.schema(): T - added:
get ZodLiteral.value(): T - added:
get ZodMap.keySchema(): Key - added:
get ZodMap.valueSchema(): Value - added:
get ZodNativeEnum.enum(): T - added:
get ZodNumber.isFinite(): boolean - added:
get ZodNumber.isInt(): boolean - added:
get ZodNumber.maxValue(): number | null - added:
get ZodNumber.minValue(): number | null - added:
get ZodObject.shape(): T - added:
get ZodRecord.element(): Value - added:
get ZodRecord.keySchema(): Key - added:
get ZodRecord.valueSchema(): Value - added:
get ZodSchema.description(): string | undefined - added:
get ZodString.isBase64(): boolean - added:
get ZodString.isBase64url(): boolean - added:
get ZodString.isCIDR(): boolean - added:
get ZodString.isCUID(): boolean - added:
get ZodString.isCUID2(): boolean - added:
get ZodString.isDate(): boolean - added:
get ZodString.isDatetime(): boolean - added:
get ZodString.isDuration(): boolean - added:
get ZodString.isEmail(): boolean - added:
get ZodString.isEmoji(): boolean - added:
get ZodString.isIP(): boolean - added:
get ZodString.isNANOID(): boolean - added:
get ZodString.isTime(): boolean - added:
get ZodString.isULID(): boolean - added:
get ZodString.isURL(): boolean - added:
get ZodString.isUUID(): boolean - added:
get ZodString.maxLength(): number | null - added:
get ZodString.minLength(): number | null - added:
get ZodTuple.items(): T - added:
get ZodType.description(): string | undefined - added:
get ZodUnion.options(): T - added:
interface RefinementCtx - added:
interface ZodAnyDef extends ZodTypeDef - added:
interface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodBigIntDef extends ZodTypeDef - added:
interface ZodBooleanDef extends ZodTypeDef - added:
interface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef - added:
interface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodDateDef extends ZodTypeDef - added:
interface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodDiscriminatedUnionDef<Discriminator extends string, Options extends readonly ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<string>[]> extends ZodTypeDef - added:
interface ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodEnumDef<T extends EnumValues = EnumValues> extends ZodTypeDef - added:
interface ZodFunctionDef<Args extends ZodTuple<any, any> = ZodTuple<any, any>, Returns extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodLiteralDef<T = any> extends ZodTypeDef - added:
interface ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodNaNDef extends ZodTypeDef - added:
interface ZodNativeEnumDef<T extends EnumLike = EnumLike> extends ZodTypeDef - added:
interface ZodNeverDef extends ZodTypeDef - added:
interface ZodNullDef extends ZodTypeDef - added:
interface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodNumberDef extends ZodTypeDef - added:
interface ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodTypeDef - added:
interface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef - added:
interface ZodStringDef extends ZodTypeDef - added:
interface ZodSymbolDef extends ZodTypeDef - added:
interface ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodTypeDef - added:
interface ZodTypeDef - added:
interface ZodUndefinedDef extends ZodTypeDef - added:
interface ZodUnionDef<T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>> extends ZodTypeDef - added:
interface ZodUnknownDef extends ZodTypeDef - added:
interface ZodVoidDef extends ZodTypeDef - added:
member ZodFirstPartyTypeKind.ZodAny = 'ZodAny' - added:
member ZodFirstPartyTypeKind.ZodArray = 'ZodArray' - added:
member ZodFirstPartyTypeKind.ZodBigInt = 'ZodBigInt' - added:
member ZodFirstPartyTypeKind.ZodBoolean = 'ZodBoolean' - added:
member ZodFirstPartyTypeKind.ZodBranded = 'ZodBranded' - added:
member ZodFirstPartyTypeKind.ZodCatch = 'ZodCatch' - added:
member ZodFirstPartyTypeKind.ZodDate = 'ZodDate' - added:
member ZodFirstPartyTypeKind.ZodDefault = 'ZodDefault' - added:
member ZodFirstPartyTypeKind.ZodDiscriminatedUnion = 'ZodDiscriminatedUnion' - added:
member ZodFirstPartyTypeKind.ZodEffects = 'ZodEffects' - added:
member ZodFirstPartyTypeKind.ZodEnum = 'ZodEnum' - added:
member ZodFirstPartyTypeKind.ZodFunction = 'ZodFunction' - added:
member ZodFirstPartyTypeKind.ZodIntersection = 'ZodIntersection' - added:
member ZodFirstPartyTypeKind.ZodLazy = 'ZodLazy' - added:
member ZodFirstPartyTypeKind.ZodLiteral = 'ZodLiteral' - added:
member ZodFirstPartyTypeKind.ZodMap = 'ZodMap' - added:
member ZodFirstPartyTypeKind.ZodNaN = 'ZodNaN' - added:
member ZodFirstPartyTypeKind.ZodNativeEnum = 'ZodNativeEnum' - added:
member ZodFirstPartyTypeKind.ZodNever = 'ZodNever' - added:
member ZodFirstPartyTypeKind.ZodNull = 'ZodNull' - added:
member ZodFirstPartyTypeKind.ZodNullable = 'ZodNullable' - added:
member ZodFirstPartyTypeKind.ZodNumber = 'ZodNumber' - added:
member ZodFirstPartyTypeKind.ZodObject = 'ZodObject' - added:
member ZodFirstPartyTypeKind.ZodOptional = 'ZodOptional' - added:
member ZodFirstPartyTypeKind.ZodPipeline = 'ZodPipeline' - added:
member ZodFirstPartyTypeKind.ZodPromise = 'ZodPromise' - added:
member ZodFirstPartyTypeKind.ZodReadonly = 'ZodReadonly' - added:
member ZodFirstPartyTypeKind.ZodRecord = 'ZodRecord' - added:
member ZodFirstPartyTypeKind.ZodSet = 'ZodSet' - added:
member ZodFirstPartyTypeKind.ZodString = 'ZodString' - added:
member ZodFirstPartyTypeKind.ZodSymbol = 'ZodSymbol' - added:
member ZodFirstPartyTypeKind.ZodTuple = 'ZodTuple' - added:
member ZodFirstPartyTypeKind.ZodUndefined = 'ZodUndefined' - added:
member ZodFirstPartyTypeKind.ZodUnion = 'ZodUnion' - added:
member ZodFirstPartyTypeKind.ZodUnknown = 'ZodUnknown' - added:
member ZodFirstPartyTypeKind.ZodVoid = 'ZodVoid' - added:
method Schema.'~validate'(data: unknown): StandardSchemaV1.Result<Output> | Promise<StandardSchemaV1.Result<Output>> - added:
method Schema._getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext - added:
method Schema._getType(input: ParseInput): string - added:
method Schema._parseAsync(input: ParseInput): AsyncParseReturnType<Output> - added:
method Schema._parseSync(input: ParseInput): SyncParseReturnType<Output> - added:
method Schema._processInputParams(input: ParseInput): { status: ParseStatus; ctx: ParseContext } - added:
method Schema._refinement(refinement: RefinementEffect<Output>['refinement']): ZodEffects<this, Output, Input> - added:
method Schema.and<T extends ZodTypeAny>(incoming: T): ZodIntersection<this, T> - added:
method Schema.array(): ZodArray<this> - added:
method Schema.brand<B extends string | number | symbol>(brand?: B): ZodBranded<this, B> - added:
method Schema.catch(def: (ctx: { error: ZodError; input: Input }) => Output): ZodCatch<this> - added:
method Schema.catch(def: Output): ZodCatch<this> - added:
method Schema.default(def: () => util.noUndefined<Input>): ZodDefault<this> - added:
method Schema.default(def: util.noUndefined<Input>): ZodDefault<this> - added:
method Schema.describe(description: string): this - added:
method Schema.isNullable(): boolean - added:
method Schema.isOptional(): boolean - added:
method Schema.nullable(): ZodNullable<this> - added:
method Schema.nullish(): ZodOptional<ZodNullable<this>> - added:
method Schema.optional(): ZodOptional<this> - added:
method Schema.or<T extends ZodTypeAny>(option: T): ZodUnion<[this, T]> - added:
method Schema.parse(data: unknown, params?: util.InexactPartial<ParseParams>): Output - added:
method Schema.parseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<Output> - added:
method Schema.pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T> - added:
method Schema.promise(): ZodPromise<this> - added:
method Schema.readonly(): ZodReadonly<this> - added:
method Schema.refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input> - added:
method Schema.refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input> - added:
method Schema.refinement(check: (arg: Output) => boolean, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, Output, Input> - added:
method Schema.refinement<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, RefinedOutput, Input> - added:
method Schema.safeParse(data: unknown, params?: util.InexactPartial<ParseParams>): SafeParseReturnType<Input, Output> - added:
method Schema.safeParseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<SafeParseReturnType<Input, Output>> - added:
method Schema.superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input> - added:
method Schema.superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input> - added:
method Schema.superRefine<RefinedOutput extends Output>(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects<this, RefinedOutput, Input> - added:
method Schema.transform<NewOut>(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise<NewOut>): ZodEffects<this, NewOut> - added:
method ZodAny._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodArray._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodArray.length(len: number, message?: errorUtil.ErrMessage): this - added:
method ZodArray.max(maxLength: number, message?: errorUtil.ErrMessage): this - added:
method ZodArray.min(minLength: number, message?: errorUtil.ErrMessage): this - added:
method ZodArray.nonempty(message?: errorUtil.ErrMessage): ZodArray<T, 'atleastone'> - added:
method ZodBigInt._addCheck(check: ZodBigIntCheck): ZodBigInt - added:
method ZodBigInt._getInvalidInput(input: ParseInput): INVALID - added:
method ZodBigInt._parse(input: ParseInput): ParseReturnType<bigint> - added:
method ZodBigInt.gt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt - added:
method ZodBigInt.gte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt - added:
method ZodBigInt.lt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt - added:
method ZodBigInt.lte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt - added:
method ZodBigInt.multipleOf(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt - added:
method ZodBigInt.negative(message?: errorUtil.ErrMessage): ZodBigInt - added:
method ZodBigInt.nonnegative(message?: errorUtil.ErrMessage): ZodBigInt - added:
method ZodBigInt.nonpositive(message?: errorUtil.ErrMessage): ZodBigInt - added:
method ZodBigInt.positive(message?: errorUtil.ErrMessage): ZodBigInt - added:
method ZodBoolean._parse(input: ParseInput): ParseReturnType<boolean> - added:
method ZodBranded._parse(input: ParseInput): ParseReturnType<any> - added:
method ZodBranded.unwrap(): T - added:
method ZodCatch._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodCatch.removeCatch(): T - added:
method ZodDate._addCheck(check: ZodDateCheck): ZodDate - added:
method ZodDate._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodDate.max(maxDate: Date, message?: errorUtil.ErrMessage): ZodDate - added:
method ZodDate.min(minDate: Date, message?: errorUtil.ErrMessage): ZodDate - added:
method ZodDefault._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodDefault.removeDefault(): T - added:
method ZodDiscriminatedUnion._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodEffects._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodEffects.innerType(): T - added:
method ZodEffects.sourceType(): T - added:
method ZodEnum._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodEnum.exclude<ToExclude extends readonly [T[number], ...T[number][]]>(values: ToExclude, newDef?: RawCreateParams): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>> - added:
method ZodEnum.extract<ToExtract extends readonly [T[number], ...T[number][]]>(values: ToExtract, newDef?: RawCreateParams): ZodEnum<Writeable<ToExtract>> - added:
method ZodFunction._parse(input: ParseInput): ParseReturnType<any> - added:
method ZodFunction.args<Items extends Parameters<(typeof ZodTuple)['create']>[0]>(...items: Items): ZodFunction<ZodTuple<Items, ZodUnknown>, Returns> - added:
method ZodFunction.implement<F extends InnerTypeOfFunction<Args, Returns>>(func: F): ReturnType<F> extends Returns['_output'] ? (...args: Args['_input']) => ReturnType<F> : OuterTypeOfFunction<Args, Returns> - added:
method ZodFunction.parameters(): Args - added:
method ZodFunction.returnType(): Returns - added:
method ZodFunction.returns<NewReturnType extends ZodType<any, any, any>>(returnType: NewReturnType): ZodFunction<Args, NewReturnType> - added:
method ZodFunction.strictImplement(func: InnerTypeOfFunction<Args, Returns>): InnerTypeOfFunction<Args, Returns> - added:
method ZodIntersection._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodLazy._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodLiteral._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodMap._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodNaN._parse(input: ParseInput): ParseReturnType<any> - added:
method ZodNativeEnum._parse(input: ParseInput): ParseReturnType<T[keyof T]> - added:
method ZodNever._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodNull._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodNullable._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodNullable.unwrap(): T - added:
method ZodNumber._addCheck(check: ZodNumberCheck): ZodNumber - added:
method ZodNumber._parse(input: ParseInput): ParseReturnType<number> - added:
method ZodNumber.finite(message?: errorUtil.ErrMessage): ZodNumber - added:
method ZodNumber.gt(value: number, message?: errorUtil.ErrMessage): ZodNumber - added:
method ZodNumber.gte(value: number, message?: errorUtil.ErrMessage): ZodNumber - added:
method ZodNumber.int(message?: errorUtil.ErrMessage): ZodNumber - added:
method ZodNumber.lt(value: number, message?: errorUtil.ErrMessage): ZodNumber - added:
method ZodNumber.lte(value: number, message?: errorUtil.ErrMessage): ZodNumber - added:
method ZodNumber.multipleOf(value: number, message?: errorUtil.ErrMessage): ZodNumber - added:
method ZodNumber.negative(message?: errorUtil.ErrMessage): ZodNumber - added:
method ZodNumber.nonnegative(message?: errorUtil.ErrMessage): ZodNumber - added:
method ZodNumber.nonpositive(message?: errorUtil.ErrMessage): ZodNumber - added:
method ZodNumber.positive(message?: errorUtil.ErrMessage): ZodNumber - added:
method ZodNumber.safe(message?: errorUtil.ErrMessage): ZodNumber - added:
method ZodObject._getCached(): { shape: T; keys: string[] } - added:
method ZodObject._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodObject.catchall<Index extends ZodTypeAny>(index: Index): ZodObject<T, UnknownKeys, Index> - added:
method ZodObject.deepPartial(): partialUtil.DeepPartial<this> - added:
method ZodObject.extend<Augmentation extends ZodRawShape>(augmentation: Augmentation): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall> - added:
method ZodObject.keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>> - added:
method ZodObject.merge<Incoming extends AnyZodObject, Augmentation extends Incoming['shape']>(merging: Incoming): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming['_def']['unknownKeys'], Incoming['_def']['catchall']> - added:
method ZodObject.omit<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall> - added:
method ZodObject.partial(): ZodObject<{ [k in keyof T]: ZodOptional<T[k]> }, UnknownKeys, Catchall> - added:
method ZodObject.partial<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k] }>, UnknownKeys, Catchall> - added:
method ZodObject.passthrough(): ZodObject<T, 'passthrough', Catchall> - added:
method ZodObject.pick<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall> - added:
method ZodObject.required(): ZodObject<{ [k in keyof T]: deoptional<T[k]> }, UnknownKeys, Catchall> - added:
method ZodObject.required<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k] }>, UnknownKeys, Catchall> - added:
method ZodObject.setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & { [k in Key]: Schema }, UnknownKeys, Catchall> - added:
method ZodObject.strict(message?: errorUtil.ErrMessage): ZodObject<T, 'strict', Catchall> - added:
method ZodObject.strip(): ZodObject<T, 'strip', Catchall> - added:
method ZodOptional._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodOptional.unwrap(): T - added:
method ZodPipeline._parse(input: ParseInput): ParseReturnType<any> - added:
method ZodPromise._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodPromise.unwrap(): T - added:
method ZodReadonly._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodReadonly.unwrap(): T - added:
method ZodRecord._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodSchema.'~validate'(data: unknown): StandardSchemaV1.Result<Output> | Promise<StandardSchemaV1.Result<Output>> - added:
method ZodSchema._getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext - added:
method ZodSchema._getType(input: ParseInput): string - added:
method ZodSchema._parseAsync(input: ParseInput): AsyncParseReturnType<Output> - added:
method ZodSchema._parseSync(input: ParseInput): SyncParseReturnType<Output> - added:
method ZodSchema._processInputParams(input: ParseInput): { status: ParseStatus; ctx: ParseContext } - added:
method ZodSchema._refinement(refinement: RefinementEffect<Output>['refinement']): ZodEffects<this, Output, Input> - added:
method ZodSchema.and<T extends ZodTypeAny>(incoming: T): ZodIntersection<this, T> - added:
method ZodSchema.array(): ZodArray<this> - added:
method ZodSchema.brand<B extends string | number | symbol>(brand?: B): ZodBranded<this, B> - added:
method ZodSchema.catch(def: (ctx: { error: ZodError; input: Input }) => Output): ZodCatch<this> - added:
method ZodSchema.catch(def: Output): ZodCatch<this> - added:
method ZodSchema.default(def: () => util.noUndefined<Input>): ZodDefault<this> - added:
method ZodSchema.default(def: util.noUndefined<Input>): ZodDefault<this> - added:
method ZodSchema.describe(description: string): this - added:
method ZodSchema.isNullable(): boolean - added:
method ZodSchema.isOptional(): boolean - added:
method ZodSchema.nullable(): ZodNullable<this> - added:
method ZodSchema.nullish(): ZodOptional<ZodNullable<this>> - added:
method ZodSchema.optional(): ZodOptional<this> - added:
method ZodSchema.or<T extends ZodTypeAny>(option: T): ZodUnion<[this, T]> - added:
method ZodSchema.parse(data: unknown, params?: util.InexactPartial<ParseParams>): Output - added:
method ZodSchema.parseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<Output> - added:
method ZodSchema.pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T> - added:
method ZodSchema.promise(): ZodPromise<this> - added:
method ZodSchema.readonly(): ZodReadonly<this> - added:
method ZodSchema.refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input> - added:
method ZodSchema.refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input> - added:
method ZodSchema.refinement(check: (arg: Output) => boolean, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, Output, Input> - added:
method ZodSchema.refinement<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, RefinedOutput, Input> - added:
method ZodSchema.safeParse(data: unknown, params?: util.InexactPartial<ParseParams>): SafeParseReturnType<Input, Output> - added:
method ZodSchema.safeParseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<SafeParseReturnType<Input, Output>> - added:
method ZodSchema.superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input> - added:
method ZodSchema.superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input> - added:
method ZodSchema.superRefine<RefinedOutput extends Output>(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects<this, RefinedOutput, Input> - added:
method ZodSchema.transform<NewOut>(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise<NewOut>): ZodEffects<this, NewOut> - added:
method ZodSet._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodSet.max(maxSize: number, message?: errorUtil.ErrMessage): this - added:
method ZodSet.min(minSize: number, message?: errorUtil.ErrMessage): this - added:
method ZodSet.nonempty(message?: errorUtil.ErrMessage): ZodSet<Value> - added:
method ZodSet.size(size: number, message?: errorUtil.ErrMessage): this - added:
method ZodString._addCheck(check: ZodStringCheck): ZodString - added:
method ZodString._parse(input: ParseInput): ParseReturnType<string> - added:
method ZodString.base64(message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.base64url(message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.cidr(options?: string | { version?: IpVersion; message?: string | undefined }): ZodString - added:
method ZodString.cuid(message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.cuid2(message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.date(message?: string): ZodString - added:
method ZodString.datetime(options?: string | { message?: string | undefined; precision?: number | null; offset?: boolean; local?: boolean }): ZodString - added:
method ZodString.duration(message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.email(message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.emoji(message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.endsWith(value: string, message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.includes(value: string, options?: { message?: string; position?: number }): ZodString - added:
method ZodString.ip(options?: string | { version?: IpVersion; message?: string | undefined }): ZodString - added:
method ZodString.jwt(options?: { alg?: string; message?: string | undefined }): ZodString - added:
method ZodString.length(len: number, message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.max(maxLength: number, message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.min(minLength: number, message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.nanoid(message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.nonempty(message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.regex(regex: RegExp, message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.startsWith(value: string, message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.time(options?: string | { message?: string | undefined; precision?: number | null }): ZodString - added:
method ZodString.toLowerCase(): ZodString - added:
method ZodString.toUpperCase(): ZodString - added:
method ZodString.trim(): ZodString - added:
method ZodString.ulid(message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.url(message?: errorUtil.ErrMessage): ZodString - added:
method ZodString.uuid(message?: errorUtil.ErrMessage): ZodString - added:
method ZodSymbol._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodTransformer._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodTransformer.innerType(): T - added:
method ZodTransformer.sourceType(): T - added:
method ZodTuple._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodTuple.rest<RestSchema extends ZodTypeAny>(rest: RestSchema): ZodTuple<T, RestSchema> - added:
method ZodType.'~validate'(data: unknown): StandardSchemaV1.Result<Output> | Promise<StandardSchemaV1.Result<Output>> - added:
method ZodType._getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext - added:
method ZodType._getType(input: ParseInput): string - added:
method ZodType._parseAsync(input: ParseInput): AsyncParseReturnType<Output> - added:
method ZodType._parseSync(input: ParseInput): SyncParseReturnType<Output> - added:
method ZodType._processInputParams(input: ParseInput): { status: ParseStatus; ctx: ParseContext } - added:
method ZodType._refinement(refinement: RefinementEffect<Output>['refinement']): ZodEffects<this, Output, Input> - added:
method ZodType.and<T extends ZodTypeAny>(incoming: T): ZodIntersection<this, T> - added:
method ZodType.array(): ZodArray<this> - added:
method ZodType.brand<B extends string | number | symbol>(brand?: B): ZodBranded<this, B> - added:
method ZodType.catch(def: (ctx: { error: ZodError; input: Input }) => Output): ZodCatch<this> - added:
method ZodType.catch(def: Output): ZodCatch<this> - added:
method ZodType.default(def: () => util.noUndefined<Input>): ZodDefault<this> - added:
method ZodType.default(def: util.noUndefined<Input>): ZodDefault<this> - added:
method ZodType.describe(description: string): this - added:
method ZodType.isNullable(): boolean - added:
method ZodType.isOptional(): boolean - added:
method ZodType.nullable(): ZodNullable<this> - added:
method ZodType.nullish(): ZodOptional<ZodNullable<this>> - added:
method ZodType.optional(): ZodOptional<this> - added:
method ZodType.or<T extends ZodTypeAny>(option: T): ZodUnion<[this, T]> - added:
method ZodType.parse(data: unknown, params?: util.InexactPartial<ParseParams>): Output - added:
method ZodType.parseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<Output> - added:
method ZodType.pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T> - added:
method ZodType.promise(): ZodPromise<this> - added:
method ZodType.readonly(): ZodReadonly<this> - added:
method ZodType.refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input> - added:
method ZodType.refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input> - added:
method ZodType.refinement(check: (arg: Output) => boolean, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, Output, Input> - added:
method ZodType.refinement<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, RefinedOutput, Input> - added:
method ZodType.safeParse(data: unknown, params?: util.InexactPartial<ParseParams>): SafeParseReturnType<Input, Output> - added:
method ZodType.safeParseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<SafeParseReturnType<Input, Output>> - added:
method ZodType.superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input> - added:
method ZodType.superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input> - added:
method ZodType.superRefine<RefinedOutput extends Output>(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects<this, RefinedOutput, Input> - added:
method ZodType.transform<NewOut>(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise<NewOut>): ZodEffects<this, NewOut> - added:
method ZodUndefined._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodUnion._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodUnknown._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
method ZodVoid._parse(input: ParseInput): ParseReturnType<this['_output']> - added:
property RefinementCtx.addIssue: (arg: IssueData) => void - added:
property RefinementCtx.path: (string | number)[] - added:
property Schema.'~standard': StandardSchemaV1.Props<Input, Output> - added:
property Schema.spa: (data: unknown, params?: util.InexactPartial<ParseParams>) => Promise<SafeParseReturnType<Input, Output>> - added:
property ZodAny._any: true - added:
property ZodAnyDef.typeName: ZodFirstPartyTypeKind.ZodAny - added:
property ZodArrayDef.exactLength: { value: number; message?: string | undefined } | null - added:
property ZodArrayDef.maxLength: { value: number; message?: string | undefined } | null - added:
property ZodArrayDef.minLength: { value: number; message?: string | undefined } | null - added:
property ZodArrayDef.type: T - added:
property ZodArrayDef.typeName: ZodFirstPartyTypeKind.ZodArray - added:
property ZodBigInt.max: (value: bigint, message?: errorUtil.ErrMessage) => ZodBigInt - added:
property ZodBigInt.min: (value: bigint, message?: errorUtil.ErrMessage) => ZodBigInt - added:
property ZodBigIntDef.checks: ZodBigIntCheck[] - added:
property ZodBigIntDef.coerce: boolean - added:
property ZodBigIntDef.typeName: ZodFirstPartyTypeKind.ZodBigInt - added:
property ZodBooleanDef.coerce: boolean - added:
property ZodBooleanDef.typeName: ZodFirstPartyTypeKind.ZodBoolean - added:
property ZodBrandedDef.type: T - added:
property ZodBrandedDef.typeName: ZodFirstPartyTypeKind.ZodBranded - added:
property ZodCatchDef.catchValue: (ctx: { error: ZodError; input: unknown }) => T['_input'] - added:
property ZodCatchDef.innerType: T - added:
property ZodCatchDef.typeName: ZodFirstPartyTypeKind.ZodCatch - added:
property ZodDateDef.checks: ZodDateCheck[] - added:
property ZodDateDef.coerce: boolean - added:
property ZodDateDef.typeName: ZodFirstPartyTypeKind.ZodDate - added:
property ZodDefaultDef.defaultValue: () => util.noUndefined<T['_input']> - added:
property ZodDefaultDef.innerType: T - added:
property ZodDefaultDef.typeName: ZodFirstPartyTypeKind.ZodDefault - added:
property ZodDiscriminatedUnionDef.discriminator: Discriminator - added:
property ZodDiscriminatedUnionDef.options: Options - added:
property ZodDiscriminatedUnionDef.optionsMap: Map<Primitive, ZodDiscriminatedUnionOption<any>> - added:
property ZodDiscriminatedUnionDef.typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion - added:
property ZodEffectsDef.effect: Effect<any> - added:
property ZodEffectsDef.schema: T - added:
property ZodEffectsDef.typeName: ZodFirstPartyTypeKind.ZodEffects - added:
property ZodEnum._cache: Set<T[number]> | undefined - added:
property ZodEnumDef.typeName: ZodFirstPartyTypeKind.ZodEnum - added:
property ZodEnumDef.values: T - added:
property ZodFunction.validate: <F extends InnerTypeOfFunction<Args, Returns>>(func: F) => ReturnType<F> extends Returns['_output'] ? (...args: Args['_input']) => ReturnType<F> : OuterTypeOfFunction<Args, Returns> - added:
property ZodFunctionDef.args: Args - added:
property ZodFunctionDef.returns: Returns - added:
property ZodFunctionDef.typeName: ZodFirstPartyTypeKind.ZodFunction - added:
property ZodIntersectionDef.left: T - added:
property ZodIntersectionDef.right: U - added:
property ZodIntersectionDef.typeName: ZodFirstPartyTypeKind.ZodIntersection - added:
property ZodLazyDef.getter: () => T - added:
property ZodLazyDef.typeName: ZodFirstPartyTypeKind.ZodLazy - added:
property ZodLiteralDef.typeName: ZodFirstPartyTypeKind.ZodLiteral - added:
property ZodLiteralDef.value: T - added:
property ZodMapDef.keyType: Key - added:
property ZodMapDef.typeName: ZodFirstPartyTypeKind.ZodMap - added:
property ZodMapDef.valueType: Value - added:
property ZodNaNDef.typeName: ZodFirstPartyTypeKind.ZodNaN - added:
property ZodNativeEnum._cache: Set<T[keyof T]> | undefined - added:
property ZodNativeEnumDef.typeName: ZodFirstPartyTypeKind.ZodNativeEnum - added:
property ZodNativeEnumDef.values: T - added:
property ZodNeverDef.typeName: ZodFirstPartyTypeKind.ZodNever - added:
property ZodNullDef.typeName: ZodFirstPartyTypeKind.ZodNull - added:
property ZodNullableDef.innerType: T - added:
property ZodNullableDef.typeName: ZodFirstPartyTypeKind.ZodNullable - added:
property ZodNumber.max: (value: number, message?: errorUtil.ErrMessage) => ZodNumber - added:
property ZodNumber.min: (value: number, message?: errorUtil.ErrMessage) => ZodNumber - added:
property ZodNumber.step: (value: number, message?: errorUtil.ErrMessage) => ZodNumber - added:
property ZodNumberDef.checks: ZodNumberCheck[] - added:
property ZodNumberDef.coerce: boolean - added:
property ZodNumberDef.typeName: ZodFirstPartyTypeKind.ZodNumber - added:
property ZodObject.augment: <Augmentation extends ZodRawShape>(augmentation: Augmentation) => ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall> - added:
property ZodObject.nonstrict: () => ZodObject<T, 'passthrough', Catchall> - added:
property ZodObjectDef.catchall: Catchall - added:
property ZodObjectDef.shape: () => T - added:
property ZodObjectDef.typeName: ZodFirstPartyTypeKind.ZodObject - added:
property ZodObjectDef.unknownKeys: UnknownKeys - added:
property ZodOptionalDef.innerType: T - added:
property ZodOptionalDef.typeName: ZodFirstPartyTypeKind.ZodOptional - added:
property ZodPipelineDef.in: A - added:
property ZodPipelineDef.out: B - added:
property ZodPipelineDef.typeName: ZodFirstPartyTypeKind.ZodPipeline - added:
property ZodPromiseDef.type: T - added:
property ZodPromiseDef.typeName: ZodFirstPartyTypeKind.ZodPromise - added:
property ZodReadonlyDef.innerType: T - added:
property ZodReadonlyDef.typeName: ZodFirstPartyTypeKind.ZodReadonly - added:
property ZodRecordDef.keyType: Key - added:
property ZodRecordDef.typeName: ZodFirstPartyTypeKind.ZodRecord - added:
property ZodRecordDef.valueType: Value - added:
property ZodSchema.'~standard': StandardSchemaV1.Props<Input, Output> - added:
property ZodSchema.spa: (data: unknown, params?: util.InexactPartial<ParseParams>) => Promise<SafeParseReturnType<Input, Output>> - added:
property ZodSetDef.maxSize: { value: number; message?: string | undefined } | null - added:
property ZodSetDef.minSize: { value: number; message?: string | undefined } | null - added:
property ZodSetDef.typeName: ZodFirstPartyTypeKind.ZodSet - added:
property ZodSetDef.valueType: Value - added:
property ZodStringDef.checks: ZodStringCheck[] - added:
property ZodStringDef.coerce: boolean - added:
property ZodStringDef.typeName: ZodFirstPartyTypeKind.ZodString - added:
property ZodSymbolDef.typeName: ZodFirstPartyTypeKind.ZodSymbol - added:
property ZodTupleDef.items: T - added:
property ZodTupleDef.rest: Rest - added:
property ZodTupleDef.typeName: ZodFirstPartyTypeKind.ZodTuple - added:
property ZodType.'~standard': StandardSchemaV1.Props<Input, Output> - added:
property ZodType.spa: (data: unknown, params?: util.InexactPartial<ParseParams>) => Promise<SafeParseReturnType<Input, Output>> - added:
property ZodTypeDef.description?: string | undefined - added:
property ZodTypeDef.errorMap?: ZodErrorMap | undefined - added:
property ZodUndefined.params?: RawCreateParams - added:
property ZodUndefinedDef.typeName: ZodFirstPartyTypeKind.ZodUndefined - added:
property ZodUnionDef.options: T - added:
property ZodUnionDef.typeName: ZodFirstPartyTypeKind.ZodUnion - added:
property ZodUnknown._unknown: true - added:
property ZodUnknownDef.typeName: ZodFirstPartyTypeKind.ZodUnknown - added:
property ZodVoidDef.typeName: ZodFirstPartyTypeKind.ZodVoid - added:
protected method ZodBigInt.setLimit(kind: 'min' | 'max', value: bigint, inclusive: boolean, message?: string): ZodBigInt - added:
protected method ZodNumber.setLimit(kind: 'min' | 'max', value: number, inclusive: boolean, message?: string): ZodNumber - added:
protected method ZodString._regex(regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage): ZodEffects<this, string, string> - added:
readonly property Schema._def: Def - added:
readonly property Schema._input: Input - added:
readonly property Schema._output: Output - added:
readonly property Schema._type: Output - added:
readonly property ZodSchema._def: Def - added:
readonly property ZodSchema._input: Input - added:
readonly property ZodSchema._output: Output - added:
readonly property ZodSchema._type: Output - added:
readonly property ZodType._def: Def - added:
readonly property ZodType._input: Input - added:
readonly property ZodType._output: Output - added:
readonly property ZodType._type: Output - added:
static method ZodDiscriminatedUnion.create<Discriminator extends string, Types extends readonly [ZodDiscriminatedUnionOption<Discriminator>, ...ZodDiscriminatedUnionOption<Discriminator>[]]>(discriminator: Discriminator, options: Types, params?: RawCreateParams): ZodDiscriminatedUnion<Discriminator, Types> - added:
static method ZodFunction.create(): ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown> - added:
static method ZodFunction.create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>, U extends ZodTypeAny = ZodUnknown>(args: T, returns: U, params?: RawCreateParams): ZodFunction<T, U> - added:
static method ZodFunction.create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>>(args: T): ZodFunction<T, ZodUnknown> - added:
static method ZodFunction.create<T extends AnyZodTuple, U extends ZodTypeAny>(args: T, returns: U): ZodFunction<T, U> - added:
static method ZodPipeline.create<ASchema extends ZodTypeAny, BSchema extends ZodTypeAny>(a: ASchema, b: BSchema): ZodPipeline<ASchema, BSchema> - added:
static method ZodRecord.create<Keys extends KeySchema, Value extends ZodTypeAny>(keySchema: Keys, valueType: Value, params?: RawCreateParams): ZodRecord<Keys, Value> - added:
static method ZodRecord.create<Value extends ZodTypeAny>(valueType: Value, params?: RawCreateParams): ZodRecord<ZodString, Value> - added:
static property ZodAny.create: (params?: RawCreateParams) => ZodAny - added:
static property ZodArray.create: <El extends ZodTypeAny>(schema: El, params?: RawCreateParams) => ZodArray<El> - added:
static property ZodBigInt.create: (params?: RawCreateParams & { coerce?: boolean }) => ZodBigInt - added:
static property ZodBoolean.create: (params?: RawCreateParams & { coerce?: boolean }) => ZodBoolean - added:
static property ZodCatch.create: <Inner extends ZodTypeAny>(type: Inner, params: RawCreateParams & { catch: Inner['_output'] | (() => Inner['_output']) }) => ZodCatch<Inner> - added:
static property ZodDate.create: (params?: RawCreateParams & { coerce?: boolean }) => ZodDate - added:
static property ZodDefault.create: <Inner extends ZodTypeAny>(type: Inner, params: RawCreateParams & { default: Inner['_input'] | (() => util.noUndefined<Inner['_input']>) }) => ZodDefault<Inner> - added:
static property ZodEffects.create: <I extends ZodTypeAny>(schema: I, effect: Effect<I['_output']>, params?: RawCreateParams) => ZodEffects<I, I['_output']> - added:
static property ZodEffects.createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I['_output'], unknown> - added:
static property ZodEnum.create: typeof createZodEnum - added:
static property ZodIntersection.create: <TSchema extends ZodTypeAny, USchema extends ZodTypeAny>(left: TSchema, right: USchema, params?: RawCreateParams) => ZodIntersection<TSchema, USchema> - added:
static property ZodLazy.create: <Inner extends ZodTypeAny>(getter: () => Inner, params?: RawCreateParams) => ZodLazy<Inner> - added:
static property ZodLiteral.create: <Value extends Primitive>(value: Value, params?: RawCreateParams) => ZodLiteral<Value> - added:
static property ZodMap.create: <KeySchema extends ZodTypeAny = ZodTypeAny, ValueSchema extends ZodTypeAny = ZodTypeAny>(keyType: KeySchema, valueType: ValueSchema, params?: RawCreateParams) => ZodMap<KeySchema, ValueSchema> - added:
static property ZodNaN.create: (params?: RawCreateParams) => ZodNaN - added:
static property ZodNativeEnum.create: <Elements extends EnumLike>(values: Elements, params?: RawCreateParams) => ZodNativeEnum<Elements> - added:
static property ZodNever.create: (params?: RawCreateParams) => ZodNever - added:
static property ZodNull.create: (params?: RawCreateParams) => ZodNull - added:
static property ZodNullable.create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodNullable<Inner> - added:
static property ZodNumber.create: (params?: RawCreateParams & { coerce?: boolean }) => ZodNumber - added:
static property ZodObject.create: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, 'strip', ZodTypeAny, objectOutputType<Shape, ZodTypeAny, 'strip'>, objectInputType<Shape, ZodTypeAny, 'strip'>> - added:
static property ZodObject.lazycreate: <Shape extends ZodRawShape>(shape: () => Shape, params?: RawCreateParams) => ZodObject<Shape, 'strip'> - added:
static property ZodObject.strictCreate: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, 'strict'> - added:
static property ZodOptional.create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodOptional<Inner> - added:
static property ZodPromise.create: <Inner extends ZodTypeAny>(schema: Inner, params?: RawCreateParams) => ZodPromise<Inner> - added:
static property ZodReadonly.create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodReadonly<Inner> - added:
static property ZodSet.create: <ValueSchema extends ZodTypeAny = ZodTypeAny>(valueType: ValueSchema, params?: RawCreateParams) => ZodSet<ValueSchema> - added:
static property ZodString.create: (params?: RawCreateParams & { coerce?: true }) => ZodString - added:
static property ZodSymbol.create: (params?: RawCreateParams) => ZodSymbol - added:
static property ZodTransformer.create: <I extends ZodTypeAny>(schema: I, effect: Effect<I['_output']>, params?: RawCreateParams) => ZodEffects<I, I['_output']> - added:
static property ZodTransformer.createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I['_output'], unknown> - added:
static property ZodTuple.create: <Items extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: Items, params?: RawCreateParams) => ZodTuple<Items, null> - added:
static property ZodUndefined.create: (params?: RawCreateParams) => ZodUndefined - added:
static property ZodUnion.create: <Options extends Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>>(types: Options, params?: RawCreateParams) => ZodUnion<Options> - added:
static property ZodUnknown.create: (params?: RawCreateParams) => ZodUnknown - added:
static property ZodVoid.create: (params?: RawCreateParams) => ZodVoid - added:
type AnyZodObject = ZodObject<any, any, any> - added:
type AnyZodTuple = ZodTuple<[ZodTypeAny, ...ZodTypeAny[]] | [], ZodTypeAny | null> - added:
type ArrayCardinality = 'many' | 'atleastone' - added:
type ArrayKeys = keyof any[] - added:
type AssertArray<T> = T extends any[] ? T : never - added:
type BRAND<T extends string | number | symbol> = { [BRAND]: { [k in T]: true } } - added:
type CatchallInput<T extends ZodType> = ZodType extends T ? unknown : { [k: string]: T['_input'] } - added:
type CatchallOutput<T extends ZodType> = ZodType extends T ? unknown : { [k: string]: T['_output'] } - added:
type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, 'code'>> - added:
type Effect<T> = RefinementEffect<T> | TransformEffect<T> | PreprocessEffect<T> - added:
type EnumLike = { [k: string]: string | number; [nu: number]: string } - added:
type EnumValues<T extends string = string> = readonly [T, ...T[]] - added:
type FilterEnum<Values, ToExclude> = Values extends [] ? [] : Values extends [infer Head, ...infer Rest] ? Head extends ToExclude ? FilterEnum<Rest, ToExclude> : [Head, ...FilterEnum<Rest, ToExclu… - added:
type Indices<T> = Exclude<keyof T, ArrayKeys> - added:
type InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = Args['_output'] extends Array<any> ? (...args: Args['_output']) => Returns['_input'] : never - added:
type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]['_input'] : never }> - added:
type InputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...InputTypeOfTuple<T>, ...Rest['_input'][]] : InputTypeOfTuple<T> - added:
type IpVersion = 'v4' | 'v6' - added:
type KeySchema = ZodType<string | number | symbol, any, any> - added:
type OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = Args['_input'] extends Array<any> ? (...args: Args['_input']) => Returns['_output'] : never - added:
type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]['_output'] : never }> - added:
type OutputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...OutputTypeOfTuple<T>, ...Rest['_output'][]] : OutputTypeOfTuple<T> - added:
type PassthroughType<T extends UnknownKeysParam> = T extends 'passthrough' ? { [k: string]: unknown } : unknown - added:
type PreprocessEffect<T> = { type: 'preprocess'; transform: (arg: T, ctx: RefinementCtx) => any } - added:
type ProcessedCreateParams = { errorMap?: ZodErrorMap | undefined; description?: string | undefined } - added:
type RawCreateParams = { errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; message?: string | undefined; description?:… - added:
type RecordType<K extends string | number | symbol, V> = [string] extends [K] ? Record<K, V> : [number] extends [K] ? Record<K, V> : [symbol] extends [K] ? Record<K, V> : [BRAND<string | number | symbol>] extends [K]… - added:
type Refinement<T> = (arg: T, ctx: RefinementCtx) => any - added:
type RefinementEffect<T> = { type: 'refinement'; refinement: (arg: T, ctx: RefinementCtx) => any } - added:
type SafeParseError<Input> = { success: false; error: ZodError<Input>; data?: never } - added:
type SafeParseReturnType<Input, Output> = SafeParseSuccess<Output> | SafeParseError<Input> - added:
type SafeParseSuccess<Output> = { success: true; data: Output; error?: never } - added:
type SomeZodObject = ZodObject<ZodRawShape, UnknownKeysParam, ZodTypeAny> - added:
type SuperRefinement<T> = (arg: T, ctx: RefinementCtx) => void | Promise<void> - added:
type TransformEffect<T> = { type: 'transform'; transform: (arg: T, ctx: RefinementCtx) => any } - added:
type TypeOf<T extends ZodType<any, any, any>> = T['_output'] - added:
type UnknownKeysParam = 'passthrough' | 'strict' | 'strip' - added:
type Values<T extends EnumValues> = { [k in T[number]]: k } - added:
type Writeable<T> = { -readonly [P in keyof T]: T[P] } - added:
type ZodBigIntCheck = { kind: 'min'; value: bigint; inclusive: boolean; message?: string | undefined } | { kind: 'max'; value: bigint; inclusive: boolean; message?: string | undefin… - added:
type ZodDateCheck = { kind: 'min'; value: number; message?: string | undefined } | { kind: 'max'; value: number; message?: string | undefined } - added:
type ZodDiscriminatedUnionOption<Discriminator extends string> = ZodObject<{ [key in Discriminator]: ZodTypeAny } & ZodRawShape, UnknownKeysParam, ZodTypeAny> - added:
type ZodFirstPartySchemaTypes = ZodString | ZodNumber | ZodNaN | ZodBigInt | ZodBoolean | ZodDate | ZodUndefined | ZodNull | ZodAny | ZodUnknown | ZodNever | ZodVoid | ZodArray<any, any> | Zo… - added:
type ZodNonEmptyArray<T extends ZodTypeAny> = ZodArray<T, 'atleastone'> - added:
type ZodNullableType<T extends ZodTypeAny> = ZodNullable<T> - added:
type ZodNumberCheck = { kind: 'min'; value: number; inclusive: boolean; message?: string | undefined } | { kind: 'max'; value: number; inclusive: boolean; message?: string | undefin… - added:
type ZodOptionalType<T extends ZodTypeAny> = ZodOptional<T> - added:
type ZodRawShape = { [k: string]: ZodTypeAny } - added:
type ZodStringCheck = { kind: 'min'; value: number; message?: string | undefined } | { kind: 'max'; value: number; message?: string | undefined } | { kind: 'length'; value: number;… - added:
type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]] - added:
type ZodTypeAny = ZodType<any, any, any> - added:
type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]> - added:
type arrayOutputType<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> = Cardinality extends 'atleastone' ? [T['_output'], ...T['_output'][]] : T['_output'][] - added:
type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{ [k in keyof Shape]: Shape[k]['_input'] }> - added:
type baseObjectOutputType<Shape extends ZodRawShape> = { [k in keyof Shape]: Shape[k]['_output'] } - added:
type deoptional<T extends ZodTypeAny> = T extends ZodOptional<infer U> ? deoptional<U> : T extends ZodNullable<infer U> ? ZodNullable<deoptional<U>> : T - added:
type infer<T extends ZodType<any, any, any>> = T['_output'] - added:
type input<T extends ZodType<any, any, any>> = T['_input'] - added:
type mergeTypes<A, B> = { [k in keyof A | keyof B]: k extends keyof B ? B[k] : k extends keyof A ? A[k] : never } - added:
type noUnrecognized<Obj extends object, Shape extends object> = { [k in keyof Obj]: k extends keyof Shape ? Obj[k] : never } - added:
type objectInputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<baseObjectInputType<Shape>> & CatchallInput<Catchall> & PassthroughType<UnknownKeys> - added:
type objectOutputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<objectUtil.addQuestionMarks<baseObjectOutputType<Shape>>> & CatchallOutput<Catchall> & PassthroughType<UnknownKeys> - added:
type output<T extends ZodType<any, any, any>> = T['_output'] - added:
type typecast<A, T> = A extends T ? A : never
- added:
export * from '../v4/mini/index'
- added:
export { _endsWith as endsWith } from '../core/index' - added:
export { _gt as gt } from '../core/index' - added:
export { _gte as gte } from '../core/index' - added:
export { _includes as includes } from '../core/index' - added:
export { _length as length } from '../core/index' - added:
export { _lowercase as lowercase } from '../core/index' - added:
export { _lt as lt } from '../core/index' - added:
export { _lte as lte } from '../core/index' - added:
export { _maxLength as maxLength } from '../core/index' - added:
export { _maxSize as maxSize } from '../core/index' - added:
export { _mime as mime } from '../core/index' - added:
export { _minLength as minLength } from '../core/index' - added:
export { _minSize as minSize } from '../core/index' - added:
export { _multipleOf as multipleOf } from '../core/index' - added:
export { _negative as negative } from '../core/index' - added:
export { _nonnegative as nonnegative } from '../core/index' - added:
export { _nonpositive as nonpositive } from '../core/index' - added:
export { _normalize as normalize } from '../core/index' - added:
export { _overwrite as overwrite } from '../core/index' - added:
export { _positive as positive } from '../core/index' - added:
export { _property as property } from '../core/index' - added:
export { _regex as regex } from '../core/index' - added:
export { _size as size } from '../core/index' - added:
export { _startsWith as startsWith } from '../core/index' - added:
export { _toLowerCase as toLowerCase } from '../core/index' - added:
export { _toUpperCase as toUpperCase } from '../core/index' - added:
export { _trim as trim } from '../core/index' - added:
export { _uppercase as uppercase } from '../core/index'
- added:
function bigint<T = unknown>(params?: string | core.$ZodBigIntParams): ZodCoercedBigInt<T> - added:
function boolean<T = unknown>(params?: string | core.$ZodBooleanParams): ZodCoercedBoolean<T> - added:
function date<T = unknown>(params?: string | core.$ZodDateParams): ZodCoercedDate<T> - added:
function number<T = unknown>(params?: string | core.$ZodNumberParams): ZodCoercedNumber<T> - added:
function string<T = unknown>(params?: string | core.$ZodStringParams): ZodCoercedString<T> - added:
interface ZodCoercedBigInt<T = unknown> extends schemas._ZodBigInt<core.$ZodBigIntInternals<T>> - added:
interface ZodCoercedBoolean<T = unknown> extends schemas._ZodBoolean<core.$ZodBooleanInternals<T>> - added:
interface ZodCoercedDate<T = unknown> extends schemas._ZodDate<core.$ZodDateInternals<T>> - added:
interface ZodCoercedNumber<T = unknown> extends schemas._ZodNumber<core.$ZodNumberInternals<T>> - added:
interface ZodCoercedString<T = unknown> extends schemas._ZodString<core.$ZodStringInternals<T>>
- added:
const ZodIssueCode: { readonly invalid_type: 'invalid_type'; readonly too_big: 'too_big'; readonly too_small: 'too_small'; readonly invalid_format: 'invalid_format'; readonly not_… - added:
export { $ZodTypes as ZodFirstPartySchemaTypes } from '../core/index' - added:
export { $brand } from '../core/index' - added:
export { ZodType as Schema } - added:
export { ZodType as ZodSchema } - added:
export { ZodType as ZodTypeAny } - added:
export { config } from '../core/index' - added:
export { output as Infer } from '../core/index' - added:
export { output as TypeOf } from '../core/index' - added:
function getErrorMap(): core.$ZodErrorMap<core.$ZodIssue> | undefined - added:
function setErrorMap(map: core.$ZodErrorMap): void - added:
type BRAND<T extends string | number | symbol = string | number | symbol> = { [core.$brand]: { [k in T]: true } } - added:
type ZodRawShape = core.$ZodShape - added:
type inferFlattenedErrors<T extends core.$ZodType, U = string> = core.$ZodFlattenedError<core.output<T>, U> - added:
type inferFormattedError<T extends core.$ZodType<any, any>, U = string> = core.$ZodFormattedError<core.output<T>, U>
- added:
const ZodError: core.$constructor<ZodError> - added:
const ZodRealError: core.$constructor<ZodError> - added:
export { $ZodErrorMap as ZodErrorMap } from '../core/index' - added:
export { $ZodFlattenedError as ZodFlattenedError } from '../core/index' - added:
export { $ZodFormattedError as ZodFormattedError } from '../core/index' - added:
interface ZodError<T = unknown> extends $ZodError<T> - added:
method ZodError.addIssue(issue: core.$ZodIssue): void - added:
method ZodError.addIssues(issues: core.$ZodIssue[]): void - added:
method ZodError.flatten(): core.$ZodFlattenedError<T> - added:
method ZodError.flatten<U>(mapper: (issue: core.$ZodIssue) => U): core.$ZodFlattenedError<T, U> - added:
method ZodError.format(): core.$ZodFormattedError<T> - added:
method ZodError.format<U>(mapper: (issue: core.$ZodIssue) => U): core.$ZodFormattedError<T, U> - added:
property ZodError.isEmpty: boolean - added:
type IssueData = core.$ZodRawIssue - added:
type ZodIssue = core.$ZodIssue
- added:
export * as coerce from './coerce' - added:
export * as core from '../core/index' - added:
export * as iso from './iso' - added:
export * as locales from '../locales/index' - added:
export * from './checks' - added:
export * from './compat' - added:
export * from './errors' - added:
export * from './parse' - added:
export * from './schemas' - added:
export { $brand } from '../core/index' - added:
export { $input } from '../core/index' - added:
export { $output } from '../core/index' - added:
export { GlobalMeta } from '../core/index' - added:
export { NEVER } from '../core/index' - added:
export { TimePrecision } from '../core/index' - added:
export { ZodCoercedBigInt } from './coerce' - added:
export { ZodCoercedBoolean } from './coerce' - added:
export { ZodCoercedDate } from './coerce' - added:
export { ZodCoercedNumber } from './coerce' - added:
export { ZodCoercedString } from './coerce' - added:
export { ZodISODate } from './iso' - added:
export { ZodISODateTime } from './iso' - added:
export { ZodISODuration } from './iso' - added:
export { ZodISOTime } from './iso' - added:
export { clone } from '../core/index' - added:
export { config } from '../core/index' - added:
export { flattenError } from '../core/index' - added:
export { formatError } from '../core/index' - added:
export { function } from '../core/index' - added:
export { globalRegistry } from '../core/index' - added:
export { infer } from '../core/index' - added:
export { input } from '../core/index' - added:
export { output } from '../core/index' - added:
export { prettifyError } from '../core/index' - added:
export { regexes } from '../core/index' - added:
export { registry } from '../core/index' - added:
export { toJSONSchema } from '../core/index' - added:
export { treeifyError } from '../core/index'
- added:
default z - added:
export * from './external' - added:
export { z }
- added:
const ZodISODate: core.$constructor<ZodISODate> - added:
const ZodISODateTime: core.$constructor<ZodISODateTime> - added:
const ZodISODuration: core.$constructor<ZodISODuration> - added:
const ZodISOTime: core.$constructor<ZodISOTime> - added:
function date(params?: string | core.$ZodISODateParams): ZodISODate - added:
function datetime(params?: string | core.$ZodISODateTimeParams): ZodISODateTime - added:
function duration(params?: string | core.$ZodISODurationParams): ZodISODuration - added:
function time(params?: string | core.$ZodISOTimeParams): ZodISOTime - added:
interface ZodISODate extends schemas.ZodStringFormat - added:
interface ZodISODateTime extends schemas.ZodStringFormat - added:
interface ZodISODuration extends schemas.ZodStringFormat - added:
interface ZodISOTime extends schemas.ZodStringFormat - added:
property ZodISODate._zod: core.$ZodISODateInternals - added:
property ZodISODateTime._zod: core.$ZodISODateTimeInternals - added:
property ZodISODuration._zod: core.$ZodISODurationInternals - added:
property ZodISOTime._zod: core.$ZodISOTimeInternals
- added:
const parse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: { callee?: core.util.AnyFunc; Err?: core.$ZodErrorClas… - added:
const parseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: { callee?: core.util.AnyFunc; Err?: core.$ZodErrorClas… - added:
const safeParse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.output<T>> - added:
const safeParseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<T>>> - added:
type ZodSafeParseError<T> = { success: false; data?: never; error: ZodError<T> } - added:
type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T> - added:
type ZodSafeParseSuccess<T> = { success: true; data: T; error?: never }
- added:
const ZodAny: core.$constructor<ZodAny> - added:
const ZodArray: core.$constructor<ZodArray> - added:
const ZodBase64: core.$constructor<ZodBase64> - added:
const ZodBase64URL: core.$constructor<ZodBase64URL> - added:
const ZodBigInt: core.$constructor<ZodBigInt> - added:
const ZodBigIntFormat: core.$constructor<ZodBigIntFormat> - added:
const ZodBoolean: core.$constructor<ZodBoolean> - added:
const ZodCIDRv4: core.$constructor<ZodCIDRv4> - added:
const ZodCIDRv6: core.$constructor<ZodCIDRv6> - added:
const ZodCUID2: core.$constructor<ZodCUID2> - added:
const ZodCUID: core.$constructor<ZodCUID> - added:
const ZodCatch: core.$constructor<ZodCatch> - added:
const ZodCustom: core.$constructor<ZodCustom> - added:
const ZodCustomStringFormat: core.$constructor<ZodCustomStringFormat> - added:
const ZodDate: core.$constructor<ZodDate> - added:
const ZodDefault: core.$constructor<ZodDefault> - added:
const ZodDiscriminatedUnion: core.$constructor<ZodDiscriminatedUnion> - added:
const ZodE164: core.$constructor<ZodE164> - added:
const ZodEmail: core.$constructor<ZodEmail> - added:
const ZodEmoji: core.$constructor<ZodEmoji> - added:
const ZodEnum: core.$constructor<ZodEnum> - added:
const ZodFile: core.$constructor<ZodFile> - added:
const ZodGUID: core.$constructor<ZodGUID> - added:
const ZodIPv4: core.$constructor<ZodIPv4> - added:
const ZodIPv6: core.$constructor<ZodIPv6> - added:
const ZodIntersection: core.$constructor<ZodIntersection> - added:
const ZodJWT: core.$constructor<ZodJWT> - added:
const ZodKSUID: core.$constructor<ZodKSUID> - added:
const ZodLazy: core.$constructor<ZodLazy> - added:
const ZodLiteral: core.$constructor<ZodLiteral> - added:
const ZodMap: core.$constructor<ZodMap> - added:
const ZodNaN: core.$constructor<ZodNaN> - added:
const ZodNanoID: core.$constructor<ZodNanoID> - added:
const ZodNever: core.$constructor<ZodNever> - added:
const ZodNonOptional: core.$constructor<ZodNonOptional> - added:
const ZodNull: core.$constructor<ZodNull> - added:
const ZodNullable: core.$constructor<ZodNullable> - added:
const ZodNumber: core.$constructor<ZodNumber> - added:
const ZodNumberFormat: core.$constructor<ZodNumberFormat> - added:
const ZodObject: core.$constructor<ZodObject> - added:
const ZodOptional: core.$constructor<ZodOptional> - added:
const ZodPipe: core.$constructor<ZodPipe> - added:
const ZodPrefault: core.$constructor<ZodPrefault> - added:
const ZodPromise: core.$constructor<ZodPromise> - added:
const ZodReadonly: core.$constructor<ZodReadonly> - added:
const ZodRecord: core.$constructor<ZodRecord> - added:
const ZodSet: core.$constructor<ZodSet> - added:
const ZodString: core.$constructor<ZodString> - added:
const ZodStringFormat: core.$constructor<ZodStringFormat> - added:
const ZodSuccess: core.$constructor<ZodSuccess> - added:
const ZodSymbol: core.$constructor<ZodSymbol> - added:
const ZodTemplateLiteral: core.$constructor<ZodTemplateLiteral> - added:
const ZodTransform: core.$constructor<ZodTransform> - added:
const ZodTuple: core.$constructor<ZodTuple> - added:
const ZodType: core.$constructor<ZodType> - added:
const ZodULID: core.$constructor<ZodULID> - added:
const ZodURL: core.$constructor<ZodURL> - added:
const ZodUUID: core.$constructor<ZodUUID> - added:
const ZodUndefined: core.$constructor<ZodUndefined> - added:
const ZodUnion: core.$constructor<ZodUnion> - added:
const ZodUnknown: core.$constructor<ZodUnknown> - added:
const ZodVoid: core.$constructor<ZodVoid> - added:
const ZodXID: core.$constructor<ZodXID> - added:
const _ZodString: core.$constructor<_ZodString> - added:
const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodPipe<ZodPipe<ZodString, ZodTransform<boolean, string>>, ZodBoolean> - added:
function _default<T extends core.SomeType>(innerType: T, defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)): ZodDefault<T> - added:
function any(): ZodAny - added:
function array<T extends core.SomeType>(element: T, params?: string | core.$ZodArrayParams): ZodArray<T> - added:
function base64(params?: string | core.$ZodBase64Params): ZodBase64 - added:
function base64url(params?: string | core.$ZodBase64URLParams): ZodBase64URL - added:
function bigint(params?: string | core.$ZodBigIntParams): ZodBigInt - added:
function boolean(params?: string | core.$ZodBooleanParams): ZodBoolean - added:
function catch<T extends core.SomeType>(innerType: T, catchValue: core.output<T> | ((ctx: core.$ZodCatchCtx) => core.output<T>)): ZodCatch<T> - added:
function check<O = unknown>(fn: core.CheckFn<O>): core.$ZodCheck<O> - added:
function cidrv4(params?: string | core.$ZodCIDRv4Params): ZodCIDRv4 - added:
function cidrv6(params?: string | core.$ZodCIDRv6Params): ZodCIDRv6 - added:
function cuid(params?: string | core.$ZodCUIDParams): ZodCUID - added:
function cuid2(params?: string | core.$ZodCUID2Params): ZodCUID2 - added:
function custom<O>(fn?: (data: unknown) => unknown, _params?: string | core.$ZodCustomParams | undefined): ZodCustom<O, O> - added:
function date(params?: string | core.$ZodDateParams): ZodDate - added:
function discriminatedUnion<Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]]>(discriminator: string, options: Types, params?: string | core.$ZodDiscriminatedUnionParams): ZodDiscriminatedUnion<Types> - added:
function e164(params?: string | core.$ZodE164Params): ZodE164 - added:
function email(params?: string | core.$ZodEmailParams): ZodEmail - added:
function emoji(params?: string | core.$ZodEmojiParams): ZodEmoji - added:
function enum<const T extends readonly string[]>(values: T, params?: string | core.$ZodEnumParams): ZodEnum<util.ToEnum<T[number]>> - added:
function enum<const T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodEnum<T> - added:
function file(params?: string | core.$ZodFileParams): ZodFile - added:
function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodFloat32 - added:
function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodFloat64 - added:
function guid(params?: string | core.$ZodGUIDParams): ZodGUID - added:
function instanceof<T extends typeof util.Class>(cls: T, params?: ZodInstanceOfParams): ZodCustom<InstanceType<T>, InstanceType<T>> - added:
function int(params?: string | core.$ZodCheckNumberFormatParams): ZodInt - added:
function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodInt32 - added:
function int64(params?: string | core.$ZodBigIntFormatParams): ZodBigIntFormat - added:
function intersection<T extends core.SomeType, U extends core.SomeType>(left: T, right: U): ZodIntersection<T, U> - added:
function ipv4(params?: string | core.$ZodIPv4Params): ZodIPv4 - added:
function ipv6(params?: string | core.$ZodIPv6Params): ZodIPv6 - added:
function json(params?: string | core.$ZodCustomParams): ZodJSONSchema - added:
function jwt(params?: string | core.$ZodJWTParams): ZodJWT - added:
function keyof<T extends ZodObject>(schema: T): ZodLiteral<Exclude<keyof T['_zod']['output'], symbol>> - added:
function ksuid(params?: string | core.$ZodKSUIDParams): ZodKSUID - added:
function lazy<T extends core.SomeType>(getter: () => T): ZodLazy<T> - added:
function literal<const T extends ReadonlyArray<util.Literal>>(value: T, params?: string | core.$ZodLiteralParams): ZodLiteral<T[number]> - added:
function literal<const T extends util.Literal>(value: T, params?: string | core.$ZodLiteralParams): ZodLiteral<T> - added:
function looseObject<T extends core.$ZodLooseShape>(shape: T, params?: string | core.$ZodObjectParams): ZodObject<T, core.$loose> - added:
function map<Key extends core.SomeType, Value extends core.SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodMapParams): ZodMap<Key, Value> - added:
function nan(params?: string | core.$ZodNaNParams): ZodNaN - added:
function nanoid(params?: string | core.$ZodNanoIDParams): ZodNanoID - added:
function nativeEnum<T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodEnum<T> - added:
function never(params?: string | core.$ZodNeverParams): ZodNever - added:
function nonoptional<T extends core.SomeType>(innerType: T, params?: string | core.$ZodNonOptionalParams): ZodNonOptional<T> - added:
function null(params?: string | core.$ZodNullParams): ZodNull - added:
function nullable<T extends core.SomeType>(innerType: T): ZodNullable<T> - added:
function nullish<T extends core.SomeType>(innerType: T): ZodOptional<ZodNullable<T>> - added:
function number(params?: string | core.$ZodNumberParams): ZodNumber - added:
function object<T extends core.$ZodLooseShape = Partial<Record<never, core.SomeType>>>(shape?: T, params?: string | core.$ZodObjectParams): ZodObject<util.Writeable<T>, core.$strip> - added:
function optional<T extends core.SomeType>(innerType: T): ZodOptional<T> - added:
function partialRecord<Key extends core.$ZodRecordKey, Value extends core.SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): ZodRecord<Key & core.$partial, Value> - added:
function pipe<const A extends core.SomeType, B extends core.$ZodType<unknown, core.output<A>> = core.$ZodType<unknown, core.output<A>>>(in_: A, out: B | core.$ZodType<unknown, core.output<A>>): ZodPipe<A, B> - added:
function prefault<T extends core.SomeType>(innerType: T, defaultValue: core.input<T> | (() => core.input<T>)): ZodPrefault<T> - added:
function preprocess<A, U extends core.SomeType, B = unknown>(fn: (arg: B, ctx: RefinementCtx) => A, schema: U): ZodPipe<ZodTransform<A, B>, U> - added:
function promise<T extends core.SomeType>(innerType: T): ZodPromise<T> - added:
function readonly<T extends core.SomeType>(innerType: T): ZodReadonly<T> - added:
function record<Key extends core.$ZodRecordKey, Value extends core.SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): ZodRecord<Key, Value> - added:
function refine<T>(fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>, _params?: string | core.$ZodCustomParams): core.$ZodCheck<T> - added:
function set<Value extends core.SomeType>(valueType: Value, params?: string | core.$ZodSetParams): ZodSet<Value> - added:
function strictObject<T extends core.$ZodLooseShape>(shape: T, params?: string | core.$ZodObjectParams): ZodObject<T, core.$strict> - added:
function string(params?: string | core.$ZodStringParams): ZodString - added:
function string<T extends string>(params?: string | core.$ZodStringParams): core.$ZodType<T, T> - added:
function stringFormat<Format extends string>(format: Format, fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp, _params?: string | core.$ZodStringFormatParams): ZodCustomStringFormat<Format> - added:
function success<T extends core.SomeType>(innerType: T): ZodSuccess<T> - added:
function superRefine<T>(fn: (arg: T, payload: RefinementCtx<T>) => void | Promise<void>): core.$ZodCheck<T> - added:
function symbol(params?: string | core.$ZodSymbolParams): ZodSymbol - added:
function templateLiteral<const Parts extends core.$ZodTemplateLiteralPart[]>(parts: Parts, params?: string | core.$ZodTemplateLiteralParams): ZodTemplateLiteral<core.$PartsToTemplateLiteral<Parts>> - added:
function transform<I = unknown, O = I>(fn: (input: I, ctx: core.ParsePayload) => O): ZodTransform<Awaited<O>, I> - added:
function tuple(items: [], params?: string | core.$ZodTupleParams): ZodTuple<[], null> - added:
function tuple<T extends readonly [core.SomeType, ...core.SomeType[]], Rest extends core.SomeType>(items: T, rest: Rest, params?: string | core.$ZodTupleParams): ZodTuple<T, Rest> - added:
function tuple<T extends readonly [core.SomeType, ...core.SomeType[]]>(items: T, params?: string | core.$ZodTupleParams): ZodTuple<T, null> - added:
function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodUInt32 - added:
function uint64(params?: string | core.$ZodBigIntFormatParams): ZodBigIntFormat - added:
function ulid(params?: string | core.$ZodULIDParams): ZodULID - added:
function undefined(params?: string | core.$ZodUndefinedParams): ZodUndefined - added:
function union<const T extends readonly core.SomeType[]>(options: T, params?: string | core.$ZodUnionParams): ZodUnion<T> - added:
function unknown(): ZodUnknown - added:
function url(params?: string | core.$ZodURLParams): ZodURL - added:
function uuid(params?: string | core.$ZodUUIDParams): ZodUUID - added:
function uuidv4(params?: string | core.$ZodUUIDv4Params): ZodUUID - added:
function uuidv6(params?: string | core.$ZodUUIDv6Params): ZodUUID - added:
function uuidv7(params?: string | core.$ZodUUIDv7Params): ZodUUID - added:
function void(params?: string | core.$ZodVoidParams): ZodVoid - added:
function xid(params?: string | core.$ZodXIDParams): ZodXID - added:
interface RefinementCtx<T = unknown> extends core.ParsePayload<T> - added:
interface ZodAny extends _ZodType<core.$ZodAnyInternals> - added:
interface ZodArray<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodArrayInternals<T>>, core.$ZodArray<T> - added:
interface ZodBase64 extends ZodStringFormat<'base64'> - added:
interface ZodBase64URL extends ZodStringFormat<'base64url'> - added:
interface ZodBigInt extends _ZodBigInt<core.$ZodBigIntInternals<bigint>> - added:
interface ZodBigIntFormat extends ZodBigInt - added:
interface ZodBoolean extends _ZodBoolean<core.$ZodBooleanInternals<boolean>> - added:
interface ZodCIDRv4 extends ZodStringFormat<'cidrv4'> - added:
interface ZodCIDRv6 extends ZodStringFormat<'cidrv6'> - added:
interface ZodCUID extends ZodStringFormat<'cuid'> - added:
interface ZodCUID2 extends ZodStringFormat<'cuid2'> - added:
interface ZodCatch<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodCatchInternals<T>>, core.$ZodCatch<T> - added:
interface ZodCustom<O = unknown, I = unknown> extends _ZodType<core.$ZodCustomInternals<O, I>>, core.$ZodCustom<O, I> - added:
interface ZodCustomStringFormat<Format extends string = string> extends ZodStringFormat<Format>, core.$ZodCustomStringFormat<Format> - added:
interface ZodDate extends _ZodDate<core.$ZodDateInternals<Date>> - added:
interface ZodDefault<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodDefaultInternals<T>>, core.$ZodDefault<T> - added:
interface ZodDiscriminatedUnion<Options extends readonly core.SomeType[] = readonly core.$ZodType[]> extends ZodUnion<Options>, core.$ZodDiscriminatedUnion<Options> - added:
interface ZodE164 extends ZodStringFormat<'e164'> - added:
interface ZodEmail extends ZodStringFormat<'email'> - added:
interface ZodEmoji extends ZodStringFormat<'emoji'> - added:
interface ZodEnum<out T extends util.EnumLike = util.EnumLike> extends _ZodType<core.$ZodEnumInternals<T>>, core.$ZodEnum<T> - added:
interface ZodFile extends _ZodType<core.$ZodFileInternals>, core.$ZodFile - added:
interface ZodFloat32 extends ZodNumberFormat - added:
interface ZodFloat64 extends ZodNumberFormat - added:
interface ZodGUID extends ZodStringFormat<'guid'> - added:
interface ZodIPv4 extends ZodStringFormat<'ipv4'> - added:
interface ZodIPv6 extends ZodStringFormat<'ipv6'> - added:
interface ZodInt extends ZodNumberFormat - added:
interface ZodInt32 extends ZodNumberFormat - added:
interface ZodIntersection<A extends core.SomeType = core.$ZodType, B extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodIntersectionInternals<A, B>>, core.$ZodIntersection<A, B> - added:
interface ZodJSONSchema extends _ZodJSONSchema - added:
interface ZodJSONSchemaInternals extends _ZodJSONSchemaInternals - added:
interface ZodJWT extends ZodStringFormat<'jwt'> - added:
interface ZodKSUID extends ZodStringFormat<'ksuid'> - added:
interface ZodLazy<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodLazyInternals<T>>, core.$ZodLazy<T> - added:
interface ZodLiteral<T extends util.Literal = util.Literal> extends _ZodType<core.$ZodLiteralInternals<T>>, core.$ZodLiteral<T> - added:
interface ZodMap<Key extends core.SomeType = core.$ZodType, Value extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodMapInternals<Key, Value>>, core.$ZodMap<Key, Value> - added:
interface ZodNaN extends _ZodType<core.$ZodNaNInternals>, core.$ZodNaN - added:
interface ZodNanoID extends ZodStringFormat<'nanoid'> - added:
interface ZodNever extends _ZodType<core.$ZodNeverInternals> - added:
interface ZodNonOptional<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodNonOptionalInternals<T>>, core.$ZodNonOptional<T> - added:
interface ZodNull extends _ZodType<core.$ZodNullInternals> - added:
interface ZodNullable<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodNullableInternals<T>>, core.$ZodNullable<T> - added:
interface ZodNumber extends _ZodNumber<core.$ZodNumberInternals<number>> - added:
interface ZodNumberFormat extends ZodNumber - added:
interface ZodObject<out Shape extends core.$ZodShape = core.$ZodLooseShape, out Config extends core.$ZodObjectConfig = core.$strip> extends _ZodType<core.$ZodObjectInternals<Shape, Config>>, core.$ZodObject<Shape, Config> - added:
interface ZodOptional<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodOptionalInternals<T>>, core.$ZodOptional<T> - added:
interface ZodPipe<A extends core.SomeType = core.$ZodType, B extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodPipeInternals<A, B>>, core.$ZodPipe<A, B> - added:
interface ZodPrefault<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodPrefaultInternals<T>>, core.$ZodPrefault<T> - added:
interface ZodPromise<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodPromiseInternals<T>>, core.$ZodPromise<T> - added:
interface ZodReadonly<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodReadonlyInternals<T>>, core.$ZodReadonly<T> - added:
interface ZodRecord<Key extends core.$ZodRecordKey = core.$ZodRecordKey, Value extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodRecordInternals<Key, Value>>, core.$ZodRecord<Key, Value> - added:
interface ZodSet<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodSetInternals<T>>, core.$ZodSet<T> - added:
interface ZodString extends _ZodString<core.$ZodStringInternals<string>> - added:
interface ZodStringFormat<Format extends string = string> extends _ZodString<core.$ZodStringFormatInternals<Format>> - added:
interface ZodSuccess<T extends core.SomeType = core.$ZodType> extends _ZodType<core.$ZodSuccessInternals<T>>, core.$ZodSuccess<T> - added:
interface ZodSymbol extends _ZodType<core.$ZodSymbolInternals> - added:
interface ZodTemplateLiteral<Template extends string = string> extends _ZodType<core.$ZodTemplateLiteralInternals<Template>>, core.$ZodTemplateLiteral<Template> - added:
interface ZodTransform<O = unknown, I = unknown> extends _ZodType<core.$ZodTransformInternals<O, I>>, core.$ZodTransform<O, I> - added:
interface ZodTuple<T extends util.TupleItems = readonly core.$ZodType[], Rest extends core.SomeType | null = core.$ZodType | null> extends _ZodType<core.$ZodTupleInternals<T, Rest>>, core.$ZodTuple<T, Rest> - added:
interface ZodType<out Output = unknown, out Input = unknown, out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>> extends core.$ZodType<Output, Input, Internals> - added:
interface ZodUInt32 extends ZodNumberFormat - added:
interface ZodULID extends ZodStringFormat<'ulid'> - added:
interface ZodURL extends ZodStringFormat<'url'> - added:
interface ZodUUID extends ZodStringFormat<'uuid'> - added:
interface ZodUndefined extends _ZodType<core.$ZodUndefinedInternals> - added:
interface ZodUnion<T extends readonly core.SomeType[] = readonly core.$ZodType[]> extends _ZodType<core.$ZodUnionInternals<T>>, core.$ZodUnion<T> - added:
interface ZodUnknown extends _ZodType<core.$ZodUnknownInternals> - added:
interface ZodVoid extends _ZodType<core.$ZodVoidInternals> - added:
interface ZodXID extends ZodStringFormat<'xid'> - added:
interface _ZodBigInt<T extends core.$ZodBigIntInternals = core.$ZodBigIntInternals> extends _ZodType<T> - added:
interface _ZodBoolean<T extends core.$ZodBooleanInternals = core.$ZodBooleanInternals> extends _ZodType<T> - added:
interface _ZodDate<T extends core.$ZodDateInternals = core.$ZodDateInternals> extends _ZodType<T> - added:
interface _ZodNumber<Internals extends core.$ZodNumberInternals = core.$ZodNumberInternals> extends _ZodType<Internals> - added:
interface _ZodString<T extends core.$ZodStringInternals<unknown> = core.$ZodStringInternals<unknown>> extends _ZodType<T> - added:
interface _ZodType<out Internals extends core.$ZodTypeInternals = core.$ZodTypeInternals> extends ZodType<any, any, Internals> - added:
method RefinementCtx.addIssue(arg: string | core.$ZodRawIssue | Partial<core.$ZodIssueCustom>): void - added:
method ZodArray.length(len: number, params?: string | core.$ZodCheckLengthEqualsParams): this - added:
method ZodArray.max(maxLength: number, params?: string | core.$ZodCheckMaxLengthParams): this - added:
method ZodArray.min(minLength: number, params?: string | core.$ZodCheckMinLengthParams): this - added:
method ZodArray.nonempty(params?: string | core.$ZodCheckMinLengthParams): this - added:
method ZodArray.unwrap(): T - added:
method ZodCatch.removeCatch(): T - added:
method ZodCatch.unwrap(): T - added:
method ZodDefault.removeDefault(): T - added:
method ZodDefault.unwrap(): T - added:
method ZodEnum.exclude<const U extends readonly (keyof T)[]>(values: U, params?: string | core.$ZodEnumParams): ZodEnum<util.Flatten<Omit<T, U[number]>>> - added:
method ZodEnum.extract<const U extends readonly (keyof T)[]>(values: U, params?: string | core.$ZodEnumParams): ZodEnum<util.Flatten<Pick<T, U[number]>>> - added:
method ZodFile.max(size: number, params?: string | core.$ZodCheckMaxSizeParams): this - added:
method ZodFile.mime(types: util.MimeTypes | Array<util.MimeTypes>, params?: string | core.$ZodCheckMimeTypeParams): this - added:
method ZodFile.min(size: number, params?: string | core.$ZodCheckMinSizeParams): this - added:
method ZodLazy.unwrap(): T - added:
method ZodNonOptional.unwrap(): T - added:
method ZodNullable.unwrap(): T - added:
method ZodObject.catchall<T extends core.SomeType>(schema: T): ZodObject<Shape, core.$catchall<T>> - added:
method ZodObject.extend<U extends core.$ZodLooseShape & Partial<Record<keyof Shape, core.SomeType>>>(shape: U): ZodObject<util.Extend<Shape, U>, Config> - added:
method ZodObject.keyof(): ZodEnum<util.ToEnum<keyof Shape & string>> - added:
method ZodObject.loose(): ZodObject<Shape, core.$loose> - added:
method ZodObject.merge<U extends ZodObject>(other: U): ZodObject<util.Extend<Shape, U['shape']>, U['_zod']['config']> - added:
method ZodObject.omit<M extends util.Mask<keyof Shape>>(mask: M): ZodObject<util.Flatten<Omit<Shape, Extract<keyof Shape, keyof M>>>, Config> - added:
method ZodObject.partial(): ZodObject<{ [k in keyof Shape]: ZodOptional<Shape[k]> }, Config> - added:
method ZodObject.partial<M extends util.Mask<keyof Shape>>(mask: M): ZodObject<{ [k in keyof Shape]: k extends keyof M ? ZodOptional<Shape[k]> : Shape[k] }, Config> - added:
method ZodObject.passthrough(): ZodObject<Shape, core.$loose> - added:
method ZodObject.pick<M extends util.Mask<keyof Shape>>(mask: M): ZodObject<util.Flatten<Pick<Shape, Extract<keyof Shape, keyof M>>>, Config> - added:
method ZodObject.required(): ZodObject<{ [k in keyof Shape]: ZodNonOptional<Shape[k]> }, Config> - added:
method ZodObject.required<M extends util.Mask<keyof Shape>>(mask: M): ZodObject<{ [k in keyof Shape]: k extends keyof M ? ZodNonOptional<Shape[k]> : Shape[k] }, Config> - added:
method ZodObject.strict(): ZodObject<Shape, core.$strict> - added:
method ZodObject.strip(): ZodObject<Shape, core.$strip> - added:
method ZodOptional.unwrap(): T - added:
method ZodPrefault.unwrap(): T - added:
method ZodPromise.unwrap(): T - added:
method ZodSet.max(maxSize: number, params?: string | core.$ZodCheckMaxSizeParams): this - added:
method ZodSet.min(minSize: number, params?: string | core.$ZodCheckMinSizeParams): this - added:
method ZodSet.nonempty(params?: string | core.$ZodCheckMinSizeParams): this - added:
method ZodSet.size(size: number, params?: string | core.$ZodCheckSizeEqualsParams): this - added:
method ZodString.base64(params?: string | core.$ZodCheckBase64Params): this - added:
method ZodString.base64url(params?: string | core.$ZodCheckBase64URLParams): this - added:
method ZodString.cidrv4(params?: string | core.$ZodCheckCIDRv4Params): this - added:
method ZodString.cidrv6(params?: string | core.$ZodCheckCIDRv6Params): this - added:
method ZodString.cuid(params?: string | core.$ZodCheckCUIDParams): this - added:
method ZodString.cuid2(params?: string | core.$ZodCheckCUID2Params): this - added:
method ZodString.date(params?: string | core.$ZodCheckISODateParams): this - added:
method ZodString.datetime(params?: string | core.$ZodCheckISODateTimeParams): this - added:
method ZodString.duration(params?: string | core.$ZodCheckISODurationParams): this - added:
method ZodString.e164(params?: string | core.$ZodCheckE164Params): this - added:
method ZodString.email(params?: string | core.$ZodCheckEmailParams): this - added:
method ZodString.emoji(params?: string | core.$ZodCheckEmojiParams): this - added:
method ZodString.guid(params?: string | core.$ZodCheckGUIDParams): this - added:
method ZodString.ipv4(params?: string | core.$ZodCheckIPv4Params): this - added:
method ZodString.ipv6(params?: string | core.$ZodCheckIPv6Params): this - added:
method ZodString.jwt(params?: string | core.$ZodCheckJWTParams): this - added:
method ZodString.ksuid(params?: string | core.$ZodCheckKSUIDParams): this - added:
method ZodString.nanoid(params?: string | core.$ZodCheckNanoIDParams): this - added:
method ZodString.time(params?: string | core.$ZodCheckISOTimeParams): this - added:
method ZodString.ulid(params?: string | core.$ZodCheckULIDParams): this - added:
method ZodString.url(params?: string | core.$ZodCheckURLParams): this - added:
method ZodString.uuid(params?: string | core.$ZodCheckUUIDParams): this - added:
method ZodString.uuidv4(params?: string | core.$ZodCheckUUIDParams): this - added:
method ZodString.uuidv6(params?: string | core.$ZodCheckUUIDParams): this - added:
method ZodString.uuidv7(params?: string | core.$ZodCheckUUIDParams): this - added:
method ZodString.xid(params?: string | core.$ZodCheckXIDParams): this - added:
method ZodSuccess.unwrap(): T - added:
method ZodTuple.rest<Rest extends core.SomeType = core.$ZodType>(rest: Rest): ZodTuple<T, Rest> - added:
method ZodType.and<T extends core.SomeType>(incoming: T): ZodIntersection<this, T> - added:
method ZodType.array(): ZodArray<this> - added:
method ZodType.brand<T extends PropertyKey = PropertyKey>(value?: T): PropertyKey extends T ? this : core.$ZodBranded<this, T> - added:
method ZodType.catch(def: (ctx: core.$ZodCatchCtx) => core.output<this>): ZodCatch<this> - added:
method ZodType.catch(def: core.output<this>): ZodCatch<this> - added:
method ZodType.check(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this - added:
method ZodType.clone(def?: Internals['def'], params?: { parent: boolean }): this - added:
method ZodType.default(def: () => util.NoUndefined<core.output<this>>): ZodDefault<this> - added:
method ZodType.default(def: core.output<this>): ZodDefault<this> - added:
method ZodType.describe(description: string): this - added:
method ZodType.isNullable(): boolean - added:
method ZodType.isOptional(): boolean - added:
method ZodType.meta(): core.$replace<core.GlobalMeta, this> | undefined - added:
method ZodType.meta(data: core.$replace<core.GlobalMeta, this>): this - added:
method ZodType.nonoptional(params?: string | core.$ZodNonOptionalParams): ZodNonOptional<this> - added:
method ZodType.nullable(): ZodNullable<this> - added:
method ZodType.nullish(): ZodOptional<ZodNullable<this>> - added:
method ZodType.optional(): ZodOptional<this> - added:
method ZodType.or<T extends core.SomeType>(option: T): ZodUnion<[this, T]> - added:
method ZodType.overwrite(fn: (x: core.output<this>) => core.output<this>): this - added:
method ZodType.parse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): core.output<this> - added:
method ZodType.parseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<core.output<this>> - added:
method ZodType.pipe<T extends core.$ZodType<any, core.output<this>>>(target: T | core.$ZodType<any, core.output<this>>): ZodPipe<this, T> - added:
method ZodType.prefault(def: () => core.input<this>): ZodPrefault<this> - added:
method ZodType.prefault(def: core.input<this>): ZodPrefault<this> - added:
method ZodType.readonly(): ZodReadonly<this> - added:
method ZodType.refine(check: (arg: core.output<this>) => unknown | Promise<unknown>, params?: string | core.$ZodCustomParams): this - added:
method ZodType.register<R extends core.$ZodRegistry>(registry: R, ...meta: this extends R['_schema'] ? undefined extends R['_meta'] ? [core.$replace<R['_meta'], this>?] : [core.$replace<R['_meta'], this>] : ['Incompatible schema']): this - added:
method ZodType.safeParse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): parse.ZodSafeParseResult<core.output<this>> - added:
method ZodType.safeParseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<parse.ZodSafeParseResult<core.output<this>>> - added:
method ZodType.superRefine(refinement: (arg: core.output<this>, ctx: RefinementCtx<core.output<this>>) => void | Promise<void>): this - added:
method ZodType.transform<NewOut>(transform: (arg: core.output<this>, ctx: RefinementCtx<core.output<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, core.output<this>>> - added:
method _ZodBigInt.gt(value: bigint, params?: string | core.$ZodCheckGreaterThanParams): this - added:
method _ZodBigInt.gte(value: bigint, params?: string | core.$ZodCheckGreaterThanParams): this - added:
method _ZodBigInt.lt(value: bigint, params?: string | core.$ZodCheckLessThanParams): this - added:
method _ZodBigInt.lte(value: bigint, params?: string | core.$ZodCheckLessThanParams): this - added:
method _ZodBigInt.max(value: bigint, params?: string | core.$ZodCheckLessThanParams): this - added:
method _ZodBigInt.min(value: bigint, params?: string | core.$ZodCheckGreaterThanParams): this - added:
method _ZodBigInt.multipleOf(value: bigint, params?: string | core.$ZodCheckMultipleOfParams): this - added:
method _ZodBigInt.negative(params?: string | core.$ZodCheckLessThanParams): this - added:
method _ZodBigInt.nonnegative(params?: string | core.$ZodCheckGreaterThanParams): this - added:
method _ZodBigInt.nonpositive(params?: string | core.$ZodCheckLessThanParams): this - added:
method _ZodBigInt.positive(params?: string | core.$ZodCheckGreaterThanParams): this - added:
method _ZodDate.max(value: number | Date, params?: string | core.$ZodCheckLessThanParams): this - added:
method _ZodDate.min(value: number | Date, params?: string | core.$ZodCheckGreaterThanParams): this - added:
method _ZodNumber.finite(params?: unknown): this - added:
method _ZodNumber.gt(value: number, params?: string | core.$ZodCheckGreaterThanParams): this - added:
method _ZodNumber.gte(value: number, params?: string | core.$ZodCheckGreaterThanParams): this - added:
method _ZodNumber.int(params?: string | core.$ZodCheckNumberFormatParams): this - added:
method _ZodNumber.lt(value: number, params?: string | core.$ZodCheckLessThanParams): this - added:
method _ZodNumber.lte(value: number, params?: string | core.$ZodCheckLessThanParams): this - added:
method _ZodNumber.max(value: number, params?: string | core.$ZodCheckLessThanParams): this - added:
method _ZodNumber.min(value: number, params?: string | core.$ZodCheckGreaterThanParams): this - added:
method _ZodNumber.multipleOf(value: number, params?: string | core.$ZodCheckMultipleOfParams): this - added:
method _ZodNumber.negative(params?: string | core.$ZodCheckLessThanParams): this - added:
method _ZodNumber.nonnegative(params?: string | core.$ZodCheckGreaterThanParams): this - added:
method _ZodNumber.nonpositive(params?: string | core.$ZodCheckLessThanParams): this - added:
method _ZodNumber.positive(params?: string | core.$ZodCheckGreaterThanParams): this - added:
method _ZodNumber.safe(params?: string | core.$ZodCheckNumberFormatParams): this - added:
method _ZodNumber.step(value: number, params?: string | core.$ZodCheckMultipleOfParams): this - added:
method _ZodString.endsWith(value: string, params?: string | core.$ZodCheckEndsWithParams): this - added:
method _ZodString.includes(value: string, params?: core.$ZodCheckIncludesParams): this - added:
method _ZodString.length(len: number, params?: string | core.$ZodCheckLengthEqualsParams): this - added:
method _ZodString.lowercase(params?: string | core.$ZodCheckLowerCaseParams): this - added:
method _ZodString.max(maxLength: number, params?: string | core.$ZodCheckMaxLengthParams): this - added:
method _ZodString.min(minLength: number, params?: string | core.$ZodCheckMinLengthParams): this - added:
method _ZodString.nonempty(params?: string | core.$ZodCheckMinLengthParams): this - added:
method _ZodString.normalize(form?: 'NFC' | 'NFD' | 'NFKC' | 'NFKD' | (string & {})): this - added:
method _ZodString.regex(regex: RegExp, params?: string | core.$ZodCheckRegexParams): this - added:
method _ZodString.startsWith(value: string, params?: string | core.$ZodCheckStartsWithParams): this - added:
method _ZodString.toLowerCase(): this - added:
method _ZodString.toUpperCase(): this - added:
method _ZodString.trim(): this - added:
method _ZodString.uppercase(params?: string | core.$ZodCheckUpperCaseParams): this - added:
property ZodArray.element: T - added:
property ZodBase64._zod: core.$ZodBase64Internals - added:
property ZodBase64URL._zod: core.$ZodBase64URLInternals - added:
property ZodBigIntFormat._zod: core.$ZodBigIntFormatInternals - added:
property ZodCIDRv4._zod: core.$ZodCIDRv4Internals - added:
property ZodCIDRv6._zod: core.$ZodCIDRv6Internals - added:
property ZodCUID._zod: core.$ZodCUIDInternals - added:
property ZodCUID2._zod: core.$ZodCUID2Internals - added:
property ZodCustomStringFormat._zod: core.$ZodCustomStringFormatInternals<Format> - added:
property ZodDiscriminatedUnion._zod: core.$ZodDiscriminatedUnionInternals<Options> - added:
property ZodE164._zod: core.$ZodE164Internals - added:
property ZodEmail._zod: core.$ZodEmailInternals - added:
property ZodEmoji._zod: core.$ZodEmojiInternals - added:
property ZodEnum.enum: T - added:
property ZodEnum.options: Array<T[keyof T]> - added:
property ZodGUID._zod: core.$ZodGUIDInternals - added:
property ZodIPv4._zod: core.$ZodIPv4Internals - added:
property ZodIPv6._zod: core.$ZodIPv6Internals - added:
property ZodJSONSchema._zod: ZodJSONSchemaInternals - added:
property ZodJSONSchemaInternals.input: util.JSONType - added:
property ZodJSONSchemaInternals.output: util.JSONType - added:
property ZodJWT._zod: core.$ZodJWTInternals - added:
property ZodKSUID._zod: core.$ZodKSUIDInternals - added:
property ZodLiteral.value: T - added:
property ZodLiteral.values: Set<T> - added:
property ZodMap.keyType: Key - added:
property ZodMap.valueType: Value - added:
property ZodNanoID._zod: core.$ZodNanoIDInternals - added:
property ZodNumberFormat._zod: core.$ZodNumberFormatInternals - added:
property ZodObject.shape: Shape - added:
property ZodPipe.in: A - added:
property ZodPipe.out: B - added:
property ZodRecord.keyType: Key - added:
property ZodRecord.valueType: Value - added:
property ZodType._def: Internals['def'] - added:
property ZodType._input: Internals['input'] - added:
property ZodType._output: Internals['output'] - added:
property ZodType.def: Internals['def'] - added:
property ZodType.description?: string - added:
property ZodType.spa: (data: unknown, params?: core.ParseContext<core.$ZodIssue>) => Promise<parse.ZodSafeParseResult<core.output<this>>> - added:
property ZodType.type: Internals['def']['type'] - added:
property ZodULID._zod: core.$ZodULIDInternals - added:
property ZodURL._zod: core.$ZodURLInternals - added:
property ZodUUID._zod: core.$ZodUUIDInternals - added:
property ZodUnion.options: T - added:
property ZodXID._zod: core.$ZodXIDInternals - added:
property _ZodBigInt.format: string | null - added:
property _ZodBigInt.maxValue: bigint | null - added:
property _ZodBigInt.minValue: bigint | null - added:
property _ZodDate.maxDate: Date | null - added:
property _ZodDate.minDate: Date | null - added:
property _ZodNumber.format: string | null - added:
property _ZodNumber.isFinite: boolean - added:
property _ZodNumber.isInt: boolean - added:
property _ZodNumber.maxValue: number | null - added:
property _ZodNumber.minValue: number | null - added:
property _ZodString.format: string | null - added:
property _ZodString.maxLength: number | null - added:
property _ZodString.minLength: number | null
- added:
const TimePrecision: { readonly Any: null; readonly Minute: -1; readonly Second: 0; readonly Millisecond: 3; readonly Microsecond: 6 } - added:
function _any<T extends schemas.$ZodAny>(Class: util.SchemaClass<T>): T - added:
function _array<T extends schemas.$ZodType>(Class: util.SchemaClass<schemas.$ZodArray>, element: T, params?: string | $ZodArrayParams): schemas.$ZodArray<T> - added:
function _base64<T extends schemas.$ZodBase64>(Class: util.SchemaClass<T>, params?: string | $ZodBase64Params | $ZodCheckBase64Params): T - added:
function _base64url<T extends schemas.$ZodBase64URL>(Class: util.SchemaClass<T>, params?: string | $ZodBase64URLParams | $ZodCheckBase64URLParams): T - added:
function _bigint<T extends schemas.$ZodBigInt>(Class: util.SchemaClass<T>, params?: string | $ZodBigIntParams): T - added:
function _boolean<T extends schemas.$ZodBoolean>(Class: util.SchemaClass<T>, params?: string | $ZodBooleanParams): T - added:
function _catch<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodCatch>, innerType: T, catchValue: core.output<T> | ((ctx: schemas.$ZodCatchCtx) => core.output<T>)): schemas.$ZodCatch<T> - added:
function _cidrv4<T extends schemas.$ZodCIDRv4>(Class: util.SchemaClass<T>, params?: string | $ZodCIDRv4Params | $ZodCheckCIDRv4Params): T - added:
function _cidrv6<T extends schemas.$ZodCIDRv6>(Class: util.SchemaClass<T>, params?: string | $ZodCIDRv6Params | $ZodCheckCIDRv6Params): T - added:
function _coercedBigint<T extends schemas.$ZodBigInt>(Class: util.SchemaClass<T>, params?: string | $ZodBigIntParams): T - added:
function _coercedBoolean<T extends schemas.$ZodBoolean>(Class: util.SchemaClass<T>, params?: string | $ZodBooleanParams): T - added:
function _coercedDate<T extends schemas.$ZodDate>(Class: util.SchemaClass<T>, params?: string | $ZodDateParams): T - added:
function _coercedNumber<T extends schemas.$ZodNumber>(Class: util.SchemaClass<T>, params?: string | $ZodNumberParams): T - added:
function _coercedString<T extends schemas.$ZodString>(Class: util.SchemaClass<T>, params?: string | $ZodStringParams): T - added:
function _cuid2<T extends schemas.$ZodCUID2>(Class: util.SchemaClass<T>, params?: string | $ZodCUID2Params | $ZodCheckCUID2Params): T - added:
function _cuid<T extends schemas.$ZodCUID>(Class: util.SchemaClass<T>, params?: string | $ZodCUIDParams | $ZodCheckCUIDParams): T - added:
function _custom<O = unknown, I = O>(Class: util.SchemaClass<schemas.$ZodCustom>, fn: (data: O) => unknown, _params: string | $ZodCustomParams | undefined): schemas.$ZodCustom<O, I> - added:
function _date<T extends schemas.$ZodDate>(Class: util.SchemaClass<T>, params?: string | $ZodDateParams): T - added:
function _default<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodDefault>, innerType: T, defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)): schemas.$ZodDefault<T> - added:
function _discriminatedUnion<Types extends [$ZodTypeDiscriminable, ...$ZodTypeDiscriminable[]]>(Class: util.SchemaClass<schemas.$ZodDiscriminatedUnion>, discriminator: string, options: Types, params?: string | $ZodDiscriminatedUnionParams): schemas.$ZodDiscriminatedUnion<Types> - added:
function _e164<T extends schemas.$ZodE164>(Class: util.SchemaClass<T>, params?: string | $ZodE164Params | $ZodCheckE164Params): T - added:
function _email<T extends schemas.$ZodEmail>(Class: util.SchemaClass<T>, params?: string | $ZodEmailParams | $ZodCheckEmailParams): T - added:
function _emoji<T extends schemas.$ZodEmoji>(Class: util.SchemaClass<T>, params?: string | $ZodEmojiParams | $ZodCheckEmojiParams): T - added:
function _endsWith(suffix: string, params?: string | $ZodCheckEndsWithParams): checks.$ZodCheckEndsWith - added:
function _enum<T extends util.EnumLike>(Class: util.SchemaClass<schemas.$ZodEnum>, entries: T, params?: string | $ZodEnumParams): schemas.$ZodEnum<T> - added:
function _enum<const T extends string[]>(Class: util.SchemaClass<schemas.$ZodEnum>, values: T, params?: string | $ZodEnumParams): schemas.$ZodEnum<util.ToEnum<T[number]>> - added:
function _file(Class: util.SchemaClass<schemas.$ZodFile>, params?: string | $ZodFileParams): schemas.$ZodFile - added:
function _float32<T extends schemas.$ZodNumberFormat>(Class: util.SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T - added:
function _float64<T extends schemas.$ZodNumberFormat>(Class: util.SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T - added:
function _gt(value: util.Numeric, params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan - added:
function _gte(value: util.Numeric, params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan - added:
function _guid<T extends schemas.$ZodGUID>(Class: util.SchemaClass<T>, params?: string | $ZodGUIDParams | $ZodCheckGUIDParams): T - added:
function _includes(includes: string, params?: string | $ZodCheckIncludesParams): checks.$ZodCheckIncludes - added:
function _int32<T extends schemas.$ZodNumberFormat>(Class: util.SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T - added:
function _int64<T extends schemas.$ZodBigIntFormat>(Class: util.SchemaClass<T>, params?: string | $ZodBigIntFormatParams): T - added:
function _int<T extends schemas.$ZodNumberFormat>(Class: util.SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T - added:
function _intersection<T extends schemas.$ZodObject, U extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodIntersection>, left: T, right: U): schemas.$ZodIntersection<T, U> - added:
function _ipv4<T extends schemas.$ZodIPv4>(Class: util.SchemaClass<T>, params?: string | $ZodIPv4Params | $ZodCheckIPv4Params): T - added:
function _ipv6<T extends schemas.$ZodIPv6>(Class: util.SchemaClass<T>, params?: string | $ZodIPv6Params | $ZodCheckIPv6Params): T - added:
function _isoDate<T extends schemas.$ZodISODate>(Class: util.SchemaClass<T>, params?: string | $ZodISODateParams | $ZodCheckISODateParams): T - added:
function _isoDateTime<T extends schemas.$ZodISODateTime>(Class: util.SchemaClass<T>, params?: string | $ZodISODateTimeParams | $ZodCheckISODateTimeParams): T - added:
function _isoDuration<T extends schemas.$ZodISODuration>(Class: util.SchemaClass<T>, params?: string | $ZodISODurationParams | $ZodCheckISODurationParams): T - added:
function _isoTime<T extends schemas.$ZodISOTime>(Class: util.SchemaClass<T>, params?: string | $ZodISOTimeParams | $ZodCheckISOTimeParams): T - added:
function _jwt<T extends schemas.$ZodJWT>(Class: util.SchemaClass<T>, params?: string | $ZodJWTParams | $ZodCheckJWTParams): T - added:
function _ksuid<T extends schemas.$ZodKSUID>(Class: util.SchemaClass<T>, params?: string | $ZodKSUIDParams | $ZodCheckKSUIDParams): T - added:
function _lazy<T extends schemas.$ZodType>(Class: util.SchemaClass<schemas.$ZodLazy>, getter: () => T): schemas.$ZodLazy<T> - added:
function _length(length: number, params?: string | $ZodCheckLengthEqualsParams): checks.$ZodCheckLengthEquals<util.HasLength> - added:
function _literal<const T extends Array<util.Literal>>(Class: util.SchemaClass<schemas.$ZodLiteral>, value: T, params?: string | $ZodLiteralParams): schemas.$ZodLiteral<T[number]> - added:
function _literal<const T extends util.Literal>(Class: util.SchemaClass<schemas.$ZodLiteral>, value: T, params?: string | $ZodLiteralParams): schemas.$ZodLiteral<T> - added:
function _lowercase(params?: string | $ZodCheckLowerCaseParams): checks.$ZodCheckLowerCase - added:
function _lt(value: util.Numeric, params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan<util.Numeric> - added:
function _lte(value: util.Numeric, params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan<util.Numeric> - added:
function _map<Key extends schemas.$ZodObject, Value extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodMap>, keyType: Key, valueType: Value, params?: string | $ZodMapParams): schemas.$ZodMap<Key, Value> - added:
function _max(value: util.Numeric, params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan<util.Numeric> - added:
function _maxLength(maximum: number, params?: string | $ZodCheckMaxLengthParams): checks.$ZodCheckMaxLength<util.HasLength> - added:
function _maxSize(maximum: number, params?: string | $ZodCheckMaxSizeParams): checks.$ZodCheckMaxSize<util.HasSize> - added:
function _mime(types: util.MimeTypes[], params?: string | $ZodCheckMimeTypeParams): checks.$ZodCheckMimeType - added:
function _min(value: util.Numeric, params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan - added:
function _minLength(minimum: number, params?: string | $ZodCheckMinLengthParams): checks.$ZodCheckMinLength<util.HasLength> - added:
function _minSize(minimum: number, params?: string | $ZodCheckMinSizeParams): checks.$ZodCheckMinSize<util.HasSize> - added:
function _multipleOf(value: number | bigint, params?: string | $ZodCheckMultipleOfParams): checks.$ZodCheckMultipleOf - added:
function _nan<T extends schemas.$ZodNaN>(Class: util.SchemaClass<T>, params?: string | $ZodNaNParams): T - added:
function _nanoid<T extends schemas.$ZodNanoID>(Class: util.SchemaClass<T>, params?: string | $ZodNanoIDParams | $ZodCheckNanoIDParams): T - added:
function _nativeEnum<T extends util.EnumLike>(Class: util.SchemaClass<schemas.$ZodEnum>, entries: T, params?: string | $ZodEnumParams): schemas.$ZodEnum<T> - added:
function _negative(params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan - added:
function _never<T extends schemas.$ZodNever>(Class: util.SchemaClass<T>, params?: string | $ZodNeverParams): T - added:
function _nonnegative(params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan - added:
function _nonoptional<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodNonOptional>, innerType: T, params?: string | $ZodNonOptionalParams): schemas.$ZodNonOptional<T> - added:
function _nonpositive(params?: string | $ZodCheckLessThanParams): checks.$ZodCheckLessThan - added:
function _normalize(form?: 'NFC' | 'NFD' | 'NFKC' | 'NFKD' | (string & {})): checks.$ZodCheckOverwrite<string> - added:
function _null<T extends schemas.$ZodNull>(Class: util.SchemaClass<T>, params?: string | $ZodNullParams): T - added:
function _nullable<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodNullable>, innerType: T): schemas.$ZodNullable<T> - added:
function _number<T extends schemas.$ZodNumber>(Class: util.SchemaClass<T>, params?: string | $ZodNumberParams): T - added:
function _optional<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodOptional>, innerType: T): schemas.$ZodOptional<T> - added:
function _overwrite<T>(tx: (input: T) => T): checks.$ZodCheckOverwrite<T> - added:
function _pipe<const A extends schemas.$ZodType, B extends schemas.$ZodType<unknown, core.output<A>> = schemas.$ZodType<unknown, core.output<A>>>(Class: util.SchemaClass<schemas.$ZodPipe>, in_: A, out: B | schemas.$ZodType<unknown, core.output<A>>): schemas.$ZodPipe<A, B> - added:
function _positive(params?: string | $ZodCheckGreaterThanParams): checks.$ZodCheckGreaterThan - added:
function _promise<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodPromise>, innerType: T): schemas.$ZodPromise<T> - added:
function _property<K extends string, T extends schemas.$ZodType>(property: K, schema: T, params?: string | $ZodCheckPropertyParams): checks.$ZodCheckProperty<{ [k in K]: core.output<T> }> - added:
function _readonly<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodReadonly>, innerType: T): schemas.$ZodReadonly<T> - added:
function _record<Key extends schemas.$ZodRecordKey, Value extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodRecord>, keyType: Key, valueType: Value, params?: string | $ZodRecordParams): schemas.$ZodRecord<Key, Value> - added:
function _refine<O = unknown, I = O>(Class: util.SchemaClass<schemas.$ZodCustom>, fn: (data: O) => unknown, _params: string | $ZodCustomParams | undefined): schemas.$ZodCustom<O, I> - added:
function _regex(pattern: RegExp, params?: string | $ZodCheckRegexParams): checks.$ZodCheckRegex - added:
function _set<Value extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodSet>, valueType: Value, params?: string | $ZodSetParams): schemas.$ZodSet<Value> - added:
function _size(size: number, params?: string | $ZodCheckSizeEqualsParams): checks.$ZodCheckSizeEquals<util.HasSize> - added:
function _startsWith(prefix: string, params?: string | $ZodCheckStartsWithParams): checks.$ZodCheckStartsWith - added:
function _string<T extends schemas.$ZodString>(Class: util.SchemaClass<T>, params?: string | $ZodStringParams): T - added:
function _stringFormat<Format extends string>(Class: typeof schemas.$ZodCustomStringFormat, format: Format, fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp, _params?: string | $ZodStringFormatParams): schemas.$ZodCustomStringFormat<Format> - added:
function _stringbool(Classes: { Pipe?: typeof schemas.$ZodPipe; Boolean?: typeof schemas.$ZodBoolean; Transform?: typeof schemas.$ZodTransform; String?: typeof schemas.$ZodString }, _params?: string | $ZodStringBoolParams): schemas.$ZodPipe<schemas.$ZodPipe<schemas.$ZodString, schemas.$ZodTransform<boolean, string>>, schemas.$ZodBoolean<boolean>> - added:
function _success<T extends schemas.$ZodObject>(Class: util.SchemaClass<schemas.$ZodSuccess>, innerType: T): schemas.$ZodSuccess<T> - added:
function _symbol<T extends schemas.$ZodSymbol>(Class: util.SchemaClass<T>, params?: string | $ZodSymbolParams): T - added:
function _templateLiteral<const Parts extends schemas.$ZodTemplateLiteralPart[]>(Class: util.SchemaClass<schemas.$ZodTemplateLiteral>, parts: Parts, params?: string | $ZodTemplateLiteralParams): schemas.$ZodTemplateLiteral<schemas.$PartsToTemplateLiteral<Parts>> - added:
function _toLowerCase(): checks.$ZodCheckOverwrite<string> - added:
function _toUpperCase(): checks.$ZodCheckOverwrite<string> - added:
function _transform<I = unknown, O = I>(Class: util.SchemaClass<schemas.$ZodTransform>, fn: (input: I, ctx?: schemas.ParsePayload) => O): schemas.$ZodTransform<Awaited<O>, I> - added:
function _trim(): checks.$ZodCheckOverwrite<string> - added:
function _tuple<T extends readonly [schemas.$ZodType, ...schemas.$ZodType[]], Rest extends schemas.$ZodType>(Class: util.SchemaClass<schemas.$ZodTuple>, items: T, rest: Rest, params?: string | $ZodTupleParams): schemas.$ZodTuple<T, Rest> - added:
function _tuple<T extends readonly [schemas.$ZodType, ...schemas.$ZodType[]]>(Class: util.SchemaClass<schemas.$ZodTuple>, items: T, params?: string | $ZodTupleParams): schemas.$ZodTuple<T, null> - added:
function _uint32<T extends schemas.$ZodNumberFormat>(Class: util.SchemaClass<T>, params?: string | $ZodCheckNumberFormatParams): T - added:
function _uint64<T extends schemas.$ZodBigIntFormat>(Class: util.SchemaClass<T>, params?: string | $ZodBigIntFormatParams): T - added:
function _ulid<T extends schemas.$ZodULID>(Class: util.SchemaClass<T>, params?: string | $ZodULIDParams | $ZodCheckULIDParams): T - added:
function _undefined<T extends schemas.$ZodUndefined>(Class: util.SchemaClass<T>, params?: string | $ZodUndefinedParams): T - added:
function _union<const T extends readonly schemas.$ZodObject[]>(Class: util.SchemaClass<schemas.$ZodUnion>, options: T, params?: string | $ZodUnionParams): schemas.$ZodUnion<T> - added:
function _unknown<T extends schemas.$ZodUnknown>(Class: util.SchemaClass<T>): T - added:
function _uppercase(params?: string | $ZodCheckUpperCaseParams): checks.$ZodCheckUpperCase - added:
function _url<T extends schemas.$ZodURL>(Class: util.SchemaClass<T>, params?: string | $ZodURLParams | $ZodCheckURLParams): T - added:
function _uuid<T extends schemas.$ZodUUID>(Class: util.SchemaClass<T>, params?: string | $ZodUUIDParams | $ZodCheckUUIDParams): T - added:
function _uuidv4<T extends schemas.$ZodUUID>(Class: util.SchemaClass<T>, params?: string | $ZodUUIDv4Params | $ZodCheckUUIDv4Params): T - added:
function _uuidv6<T extends schemas.$ZodUUID>(Class: util.SchemaClass<T>, params?: string | $ZodUUIDv6Params | $ZodCheckUUIDv6Params): T - added:
function _uuidv7<T extends schemas.$ZodUUID>(Class: util.SchemaClass<T>, params?: string | $ZodUUIDv7Params | $ZodCheckUUIDv7Params): T - added:
function _void<T extends schemas.$ZodVoid>(Class: util.SchemaClass<T>, params?: string | $ZodVoidParams): T - added:
function _xid<T extends schemas.$ZodXID>(Class: util.SchemaClass<T>, params?: string | $ZodXIDParams | $ZodCheckXIDParams): T - added:
interface $ZodStringBoolParams extends TypeParams - added:
interface $ZodTypeDiscriminable extends schemas.$ZodType - added:
interface $ZodTypeDiscriminableInternals extends schemas.$ZodTypeInternals - added:
property $ZodStringBoolParams.case?: 'sensitive' | 'insensitive' | undefined - added:
property $ZodStringBoolParams.falsy?: string[] - added:
property $ZodStringBoolParams.truthy?: string[] - added:
property $ZodTypeDiscriminable._zod: $ZodTypeDiscriminableInternals - added:
property $ZodTypeDiscriminableInternals.propValues: util.PropValues - added:
type $ZodAnyParams = TypeParams<schemas.$ZodAny> - added:
type $ZodArrayParams = TypeParams<schemas.$ZodArray, 'element'> - added:
type $ZodBase64Params = StringFormatParams<schemas.$ZodBase64, 'pattern'> - added:
type $ZodBase64URLParams = StringFormatParams<schemas.$ZodBase64URL, 'pattern'> - added:
type $ZodBigIntFormatParams = CheckTypeParams<schemas.$ZodBigIntFormat, 'format' | 'coerce'> - added:
type $ZodBigIntParams = TypeParams<schemas.$ZodBigInt<bigint>> - added:
type $ZodBooleanParams = TypeParams<schemas.$ZodBoolean<boolean>, 'coerce'> - added:
type $ZodCIDRv4Params = StringFormatParams<schemas.$ZodCIDRv4, 'pattern'> - added:
type $ZodCIDRv6Params = StringFormatParams<schemas.$ZodCIDRv6, 'pattern'> - added:
type $ZodCUID2Params = StringFormatParams<schemas.$ZodCUID2> - added:
type $ZodCUIDParams = StringFormatParams<schemas.$ZodCUID> - added:
type $ZodCatchParams = TypeParams<schemas.$ZodCatch, 'innerType' | 'catchValue'> - added:
type $ZodCheckBase64Params = CheckStringFormatParams<schemas.$ZodBase64, 'pattern'> - added:
type $ZodCheckBase64URLParams = CheckStringFormatParams<schemas.$ZodBase64URL, 'pattern'> - added:
type $ZodCheckBigIntFormatParams = CheckParams<checks.$ZodCheckBigIntFormat, 'format'> - added:
type $ZodCheckCIDRv4Params = CheckStringFormatParams<schemas.$ZodCIDRv4, 'pattern'> - added:
type $ZodCheckCIDRv6Params = CheckStringFormatParams<schemas.$ZodCIDRv6, 'pattern'> - added:
type $ZodCheckCUID2Params = CheckStringFormatParams<schemas.$ZodCUID2> - added:
type $ZodCheckCUIDParams = CheckStringFormatParams<schemas.$ZodCUID> - added:
type $ZodCheckE164Params = CheckStringFormatParams<schemas.$ZodE164> - added:
type $ZodCheckEmailParams = CheckStringFormatParams<schemas.$ZodEmail> - added:
type $ZodCheckEmojiParams = CheckStringFormatParams<schemas.$ZodEmoji> - added:
type $ZodCheckEndsWithParams = CheckParams<checks.$ZodCheckEndsWith, 'suffix' | 'format' | 'pattern'> - added:
type $ZodCheckGUIDParams = CheckStringFormatParams<schemas.$ZodGUID, 'pattern'> - added:
type $ZodCheckGreaterThanParams = CheckParams<checks.$ZodCheckGreaterThan, 'inclusive' | 'value'> - added:
type $ZodCheckIPv4Params = CheckStringFormatParams<schemas.$ZodIPv4, 'pattern'> - added:
type $ZodCheckIPv6Params = CheckStringFormatParams<schemas.$ZodIPv6, 'pattern'> - added:
type $ZodCheckISODateParams = CheckStringFormatParams<schemas.$ZodISODate, 'pattern'> - added:
type $ZodCheckISODateTimeParams = CheckStringFormatParams<schemas.$ZodISODateTime, 'pattern'> - added:
type $ZodCheckISODurationParams = CheckStringFormatParams<schemas.$ZodISODuration> - added:
type $ZodCheckISOTimeParams = CheckStringFormatParams<schemas.$ZodISOTime, 'pattern'> - added:
type $ZodCheckIncludesParams = CheckParams<checks.$ZodCheckIncludes, 'includes' | 'format' | 'pattern'> - added:
type $ZodCheckJWTParams = CheckStringFormatParams<schemas.$ZodJWT, 'pattern'> - added:
type $ZodCheckKSUIDParams = CheckStringFormatParams<schemas.$ZodKSUID> - added:
type $ZodCheckLengthEqualsParams = CheckParams<checks.$ZodCheckLengthEquals, 'length'> - added:
type $ZodCheckLessThanParams = CheckParams<checks.$ZodCheckLessThan, 'inclusive' | 'value'> - added:
type $ZodCheckLowerCaseParams = CheckParams<checks.$ZodCheckLowerCase, 'format'> - added:
type $ZodCheckMaxLengthParams = CheckParams<checks.$ZodCheckMaxLength, 'maximum'> - added:
type $ZodCheckMaxSizeParams = CheckParams<checks.$ZodCheckMaxSize, 'maximum'> - added:
type $ZodCheckMimeTypeParams = CheckParams<checks.$ZodCheckMimeType, 'mime'> - added:
type $ZodCheckMinLengthParams = CheckParams<checks.$ZodCheckMinLength, 'minimum'> - added:
type $ZodCheckMinSizeParams = CheckParams<checks.$ZodCheckMinSize, 'minimum'> - added:
type $ZodCheckMultipleOfParams = CheckParams<checks.$ZodCheckMultipleOf, 'value'> - added:
type $ZodCheckNanoIDParams = CheckStringFormatParams<schemas.$ZodNanoID> - added:
type $ZodCheckNumberFormatParams = CheckParams<checks.$ZodCheckNumberFormat, 'format'> - added:
type $ZodCheckPropertyParams = CheckParams<checks.$ZodCheckProperty, 'property' | 'schema'> - added:
type $ZodCheckRegexParams = CheckParams<checks.$ZodCheckRegex, 'format' | 'pattern'> - added:
type $ZodCheckSizeEqualsParams = CheckParams<checks.$ZodCheckSizeEquals, 'size'> - added:
type $ZodCheckStartsWithParams = CheckParams<checks.$ZodCheckStartsWith, 'prefix' | 'format' | 'pattern'> - added:
type $ZodCheckStringFormatParams = CheckParams<checks.$ZodCheckStringFormat, 'format'> - added:
type $ZodCheckULIDParams = CheckStringFormatParams<schemas.$ZodULID> - added:
type $ZodCheckURLParams = CheckStringFormatParams<schemas.$ZodURL> - added:
type $ZodCheckUUIDParams = CheckStringFormatParams<schemas.$ZodUUID, 'pattern'> - added:
type $ZodCheckUUIDv4Params = CheckStringFormatParams<schemas.$ZodUUID, 'pattern'> - added:
type $ZodCheckUUIDv6Params = CheckStringFormatParams<schemas.$ZodUUID, 'pattern'> - added:
type $ZodCheckUUIDv7Params = CheckStringFormatParams<schemas.$ZodUUID, 'pattern'> - added:
type $ZodCheckUpperCaseParams = CheckParams<checks.$ZodCheckUpperCase, 'format'> - added:
type $ZodCheckXIDParams = CheckStringFormatParams<schemas.$ZodXID> - added:
type $ZodCustomParams = CheckTypeParams<schemas.$ZodCustom, 'fn'> - added:
type $ZodDateParams = TypeParams<schemas.$ZodDate, 'coerce'> - added:
type $ZodDefaultParams = TypeParams<schemas.$ZodDefault, 'innerType' | 'defaultValue'> - added:
type $ZodDiscriminatedUnionParams = TypeParams<schemas.$ZodDiscriminatedUnion, 'options' | 'discriminator'> - added:
type $ZodE164Params = StringFormatParams<schemas.$ZodE164> - added:
type $ZodEmailParams = StringFormatParams<schemas.$ZodEmail> - added:
type $ZodEmojiParams = StringFormatParams<schemas.$ZodEmoji> - added:
type $ZodEnumParams = TypeParams<schemas.$ZodEnum, 'entries'> - added:
type $ZodFileParams = TypeParams<schemas.$ZodFile> - added:
type $ZodGUIDParams = StringFormatParams<schemas.$ZodGUID, 'pattern'> - added:
type $ZodIPv4Params = StringFormatParams<schemas.$ZodIPv4, 'pattern'> - added:
type $ZodIPv6Params = StringFormatParams<schemas.$ZodIPv6, 'pattern'> - added:
type $ZodISODateParams = StringFormatParams<schemas.$ZodISODate, 'pattern'> - added:
type $ZodISODateTimeParams = StringFormatParams<schemas.$ZodISODateTime, 'pattern'> - added:
type $ZodISODurationParams = StringFormatParams<schemas.$ZodISODuration> - added:
type $ZodISOTimeParams = StringFormatParams<schemas.$ZodISOTime, 'pattern'> - added:
type $ZodIntersectionParams = TypeParams<schemas.$ZodIntersection, 'left' | 'right'> - added:
type $ZodJWTParams = StringFormatParams<schemas.$ZodJWT, 'pattern'> - added:
type $ZodKSUIDParams = StringFormatParams<schemas.$ZodKSUID> - added:
type $ZodLazyParams = TypeParams<schemas.$ZodLazy, 'getter'> - added:
type $ZodLiteralParams = TypeParams<schemas.$ZodLiteral, 'values'> - added:
type $ZodMapParams = TypeParams<schemas.$ZodMap, 'keyType' | 'valueType'> - added:
type $ZodNaNParams = TypeParams<schemas.$ZodNaN> - added:
type $ZodNanoIDParams = StringFormatParams<schemas.$ZodNanoID> - added:
type $ZodNeverParams = TypeParams<schemas.$ZodNever> - added:
type $ZodNonOptionalParams = TypeParams<schemas.$ZodNonOptional, 'innerType'> - added:
type $ZodNullParams = TypeParams<schemas.$ZodNull> - added:
type $ZodNullableParams = TypeParams<schemas.$ZodNullable, 'innerType'> - added:
type $ZodNumberFormatParams = CheckTypeParams<schemas.$ZodNumberFormat, 'format' | 'coerce'> - added:
type $ZodNumberParams = TypeParams<schemas.$ZodNumber<number>, 'coerce'> - added:
type $ZodObjectParams = TypeParams<schemas.$ZodObject, 'shape' | 'catchall'> - added:
type $ZodOptionalParams = TypeParams<schemas.$ZodOptional, 'innerType'> - added:
type $ZodPipeParams = TypeParams<schemas.$ZodPipe, 'in' | 'out'> - added:
type $ZodPromiseParams = TypeParams<schemas.$ZodPromise, 'innerType'> - added:
type $ZodReadonlyParams = TypeParams<schemas.$ZodReadonly, 'innerType'> - added:
type $ZodRecordParams = TypeParams<schemas.$ZodRecord, 'keyType' | 'valueType'> - added:
type $ZodSetParams = TypeParams<schemas.$ZodSet, 'valueType'> - added:
type $ZodStringFormatParams = CheckTypeParams<schemas.$ZodStringFormat, 'format' | 'coerce'> - added:
type $ZodStringParams = TypeParams<schemas.$ZodString<string>, 'coerce'> - added:
type $ZodSuccessParams = TypeParams<schemas.$ZodSuccess, 'innerType'> - added:
type $ZodSymbolParams = TypeParams<schemas.$ZodSymbol> - added:
type $ZodTemplateLiteralParams = TypeParams<schemas.$ZodTemplateLiteral, 'parts'> - added:
type $ZodTransformParams = TypeParams<schemas.$ZodTransform, 'transform'> - added:
type $ZodTupleParams = TypeParams<schemas.$ZodTuple, 'items' | 'rest'> - added:
type $ZodULIDParams = StringFormatParams<schemas.$ZodULID> - added:
type $ZodURLParams = StringFormatParams<schemas.$ZodURL> - added:
type $ZodUUIDParams = StringFormatParams<schemas.$ZodUUID, 'pattern'> - added:
type $ZodUUIDv4Params = StringFormatParams<schemas.$ZodUUID, 'pattern'> - added:
type $ZodUUIDv6Params = StringFormatParams<schemas.$ZodUUID, 'pattern'> - added:
type $ZodUUIDv7Params = StringFormatParams<schemas.$ZodUUID, 'pattern'> - added:
type $ZodUndefinedParams = TypeParams<schemas.$ZodUndefined> - added:
type $ZodUnionParams = TypeParams<schemas.$ZodUnion, 'options'> - added:
type $ZodUnknownParams = TypeParams<schemas.$ZodUnknown> - added:
type $ZodVoidParams = TypeParams<schemas.$ZodVoid> - added:
type $ZodXIDParams = StringFormatParams<schemas.$ZodXID> - added:
type CheckParams<T extends checks.$ZodCheck = checks.$ZodCheck, AlsoOmit extends Exclude<keyof T['_zod']['def'], 'check' | 'error'> = never> = Params<T, NonNullable<T['_zod']['issc']>, 'check' | 'error' | AlsoOmit> - added:
type CheckStringFormatParams<T extends schemas.$ZodStringFormat = schemas.$ZodStringFormat, AlsoOmit extends Exclude<keyof T['_zod']['def'], 'type' | 'coerce' | 'checks' | 'error' | 'check' | 'format'> = never> = Params<T, NonNullable<T['_zod']['issc']>, 'type' | 'coerce' | 'checks' | 'error' | 'check' | 'format' | AlsoOmit> - added:
type CheckTypeParams<T extends schemas.$ZodType & checks.$ZodCheck = schemas.$ZodType & checks.$ZodCheck, AlsoOmit extends Exclude<keyof T['_zod']['def'], 'type' | 'checks' | 'error' | 'check'> = never> = Params<T, NonNullable<T['_zod']['isst'] | T['_zod']['issc']>, 'type' | 'checks' | 'error' | 'check' | AlsoOmit> - added:
type Params<T extends schemas.$ZodType | checks.$ZodCheck, IssueTypes extends errors.$ZodIssueBase, OmitKeys extends keyof T['_zod']['def'] = never> = util.Flatten<Partial<util.EmptyToNever<Omit<T['_zod']['def'], OmitKeys> & ([IssueTypes] extends [never] ? {} : { error?: string | errors.$ZodErrorMap<IssueType… - added:
type StringFormatParams<T extends schemas.$ZodStringFormat = schemas.$ZodStringFormat, AlsoOmit extends Exclude<keyof T['_zod']['def'], 'type' | 'coerce' | 'checks' | 'error' | 'check' | 'format'> = never> = Params<T, NonNullable<T['_zod']['isst'] | T['_zod']['issc']>, 'type' | 'coerce' | 'checks' | 'error' | 'check' | 'format' | AlsoOmit> - added:
type TypeParams<T extends schemas.$ZodType = schemas.$ZodType & { _isst: never }, AlsoOmit extends Exclude<keyof T['_zod']['def'], 'type' | 'checks' | 'error'> = never> = Params<T, NonNullable<T['_zod']['isst']>, 'type' | 'checks' | 'error' | AlsoOmit>
- added:
const $ZodCheck: core.$constructor<$ZodCheck<any>> - added:
const $ZodCheckBigIntFormat: core.$constructor<$ZodCheckBigIntFormat> - added:
const $ZodCheckEndsWith: core.$constructor<$ZodCheckEndsWith> - added:
const $ZodCheckGreaterThan: core.$constructor<$ZodCheckGreaterThan> - added:
const $ZodCheckIncludes: core.$constructor<$ZodCheckIncludes> - added:
const $ZodCheckLengthEquals: core.$constructor<$ZodCheckLengthEquals> - added:
const $ZodCheckLessThan: core.$constructor<$ZodCheckLessThan> - added:
const $ZodCheckLowerCase: core.$constructor<$ZodCheckLowerCase> - added:
const $ZodCheckMaxLength: core.$constructor<$ZodCheckMaxLength> - added:
const $ZodCheckMaxSize: core.$constructor<$ZodCheckMaxSize> - added:
const $ZodCheckMimeType: core.$constructor<$ZodCheckMimeType> - added:
const $ZodCheckMinLength: core.$constructor<$ZodCheckMinLength> - added:
const $ZodCheckMinSize: core.$constructor<$ZodCheckMinSize> - added:
const $ZodCheckMultipleOf: core.$constructor<$ZodCheckMultipleOf<number | bigint>> - added:
const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat> - added:
const $ZodCheckOverwrite: core.$constructor<$ZodCheckOverwrite> - added:
const $ZodCheckProperty: core.$constructor<$ZodCheckProperty> - added:
const $ZodCheckRegex: core.$constructor<$ZodCheckRegex> - added:
const $ZodCheckSizeEquals: core.$constructor<$ZodCheckSizeEquals> - added:
const $ZodCheckStartsWith: core.$constructor<$ZodCheckStartsWith> - added:
const $ZodCheckStringFormat: core.$constructor<$ZodCheckStringFormat> - added:
const $ZodCheckUpperCase: core.$constructor<$ZodCheckUpperCase> - added:
interface $ZodCheck<in T = never> - added:
interface $ZodCheckBigIntFormat extends $ZodCheck<bigint> - added:
interface $ZodCheckBigIntFormatDef extends $ZodCheckDef - added:
interface $ZodCheckBigIntFormatInternals extends $ZodCheckInternals<bigint> - added:
interface $ZodCheckDef - added:
interface $ZodCheckEndsWith extends $ZodCheckInternals<string> - added:
interface $ZodCheckEndsWithDef extends $ZodCheckStringFormatDef<'ends_with'> - added:
interface $ZodCheckEndsWithInternals extends $ZodCheckInternals<string> - added:
interface $ZodCheckGreaterThan<T extends util.Numeric = util.Numeric> extends $ZodCheck<T> - added:
interface $ZodCheckGreaterThanDef extends $ZodCheckDef - added:
interface $ZodCheckGreaterThanInternals<T extends util.Numeric = util.Numeric> extends $ZodCheckInternals<T> - added:
interface $ZodCheckIncludes extends $ZodCheck<string> - added:
interface $ZodCheckIncludesDef extends $ZodCheckStringFormatDef<'includes'> - added:
interface $ZodCheckIncludesInternals extends $ZodCheckInternals<string> - added:
interface $ZodCheckInternals<T> - added:
interface $ZodCheckLengthEquals<T extends util.HasLength = util.HasLength> extends $ZodCheck<T> - added:
interface $ZodCheckLengthEqualsDef extends $ZodCheckDef - added:
interface $ZodCheckLengthEqualsInternals<T extends util.HasLength = util.HasLength> extends $ZodCheckInternals<T> - added:
interface $ZodCheckLessThan<T extends util.Numeric = util.Numeric> extends $ZodCheck<T> - added:
interface $ZodCheckLessThanDef extends $ZodCheckDef - added:
interface $ZodCheckLessThanInternals<T extends util.Numeric = util.Numeric> extends $ZodCheckInternals<T> - added:
interface $ZodCheckLowerCase extends $ZodCheck<string> - added:
interface $ZodCheckLowerCaseDef extends $ZodCheckStringFormatDef<'lowercase'> - added:
interface $ZodCheckLowerCaseInternals extends $ZodCheckInternals<string> - added:
interface $ZodCheckMaxLength<T extends util.HasLength = util.HasLength> extends $ZodCheck<T> - added:
interface $ZodCheckMaxLengthDef extends $ZodCheckDef - added:
interface $ZodCheckMaxLengthInternals<T extends util.HasLength = util.HasLength> extends $ZodCheckInternals<T> - added:
interface $ZodCheckMaxSize<T extends util.HasSize = util.HasSize> extends $ZodCheck<T> - added:
interface $ZodCheckMaxSizeDef extends $ZodCheckDef - added:
interface $ZodCheckMaxSizeInternals<T extends util.HasSize = util.HasSize> extends $ZodCheckInternals<T> - added:
interface $ZodCheckMimeType<T extends File = File> extends $ZodCheck<T> - added:
interface $ZodCheckMimeTypeDef extends $ZodCheckDef - added:
interface $ZodCheckMimeTypeInternals<T extends File = File> extends $ZodCheckInternals<T> - added:
interface $ZodCheckMinLength<T extends util.HasLength = util.HasLength> extends $ZodCheck<T> - added:
interface $ZodCheckMinLengthDef extends $ZodCheckDef - added:
interface $ZodCheckMinLengthInternals<T extends util.HasLength = util.HasLength> extends $ZodCheckInternals<T> - added:
interface $ZodCheckMinSize<T extends util.HasSize = util.HasSize> extends $ZodCheck<T> - added:
interface $ZodCheckMinSizeDef extends $ZodCheckDef - added:
interface $ZodCheckMinSizeInternals<T extends util.HasSize = util.HasSize> extends $ZodCheckInternals<T> - added:
interface $ZodCheckMultipleOf<T extends number | bigint = number | bigint> extends $ZodCheck<T> - added:
interface $ZodCheckMultipleOfDef<T extends number | bigint = number | bigint> extends $ZodCheckDef - added:
interface $ZodCheckMultipleOfInternals<T extends number | bigint = number | bigint> extends $ZodCheckInternals<T> - added:
interface $ZodCheckNumberFormat extends $ZodCheck<number> - added:
interface $ZodCheckNumberFormatDef extends $ZodCheckDef - added:
interface $ZodCheckNumberFormatInternals extends $ZodCheckInternals<number> - added:
interface $ZodCheckOverwrite<T = unknown> extends $ZodCheck<T> - added:
interface $ZodCheckOverwriteDef<T = unknown> extends $ZodCheckDef - added:
interface $ZodCheckOverwriteInternals<T = unknown> extends $ZodCheckInternals<T> - added:
interface $ZodCheckProperty<T extends object = object> extends $ZodCheck<T> - added:
interface $ZodCheckPropertyDef extends $ZodCheckDef - added:
interface $ZodCheckPropertyInternals<T extends object = object> extends $ZodCheckInternals<T> - added:
interface $ZodCheckRegex extends $ZodCheck<string> - added:
interface $ZodCheckRegexDef extends $ZodCheckStringFormatDef - added:
interface $ZodCheckRegexInternals extends $ZodCheckInternals<string> - added:
interface $ZodCheckSizeEquals<T extends util.HasSize = util.HasSize> extends $ZodCheck<T> - added:
interface $ZodCheckSizeEqualsDef extends $ZodCheckDef - added:
interface $ZodCheckSizeEqualsInternals<T extends util.HasSize = util.HasSize> extends $ZodCheckInternals<T> - added:
interface $ZodCheckStartsWith extends $ZodCheck<string> - added:
interface $ZodCheckStartsWithDef extends $ZodCheckStringFormatDef<'starts_with'> - added:
interface $ZodCheckStartsWithInternals extends $ZodCheckInternals<string> - added:
interface $ZodCheckStringFormat extends $ZodCheck<string> - added:
interface $ZodCheckStringFormatDef<Format extends string = string> extends $ZodCheckDef - added:
interface $ZodCheckStringFormatInternals extends $ZodCheckInternals<string> - added:
interface $ZodCheckUpperCase extends $ZodCheck<string> - added:
interface $ZodCheckUpperCaseDef extends $ZodCheckStringFormatDef<'uppercase'> - added:
interface $ZodCheckUpperCaseInternals extends $ZodCheckInternals<string> - added:
method $ZodCheckInternals.check(payload: schemas.ParsePayload<T>): util.MaybeAsync<void> - added:
method $ZodCheckOverwriteDef.tx(value: T): T - added:
property $ZodCheck._zod: $ZodCheckInternals<T> - added:
property $ZodCheckBigIntFormat._zod: $ZodCheckBigIntFormatInternals - added:
property $ZodCheckBigIntFormatDef.check: 'bigint_format' - added:
property $ZodCheckBigIntFormatDef.format: $ZodBigIntFormats | undefined - added:
property $ZodCheckBigIntFormatInternals.def: $ZodCheckBigIntFormatDef - added:
property $ZodCheckBigIntFormatInternals.issc: errors.$ZodIssueTooBig<'bigint'> | errors.$ZodIssueTooSmall<'bigint'> - added:
property $ZodCheckDef.abort?: boolean | undefined - added:
property $ZodCheckDef.check: string - added:
property $ZodCheckDef.error?: errors.$ZodErrorMap<never> | undefined - added:
property $ZodCheckDef.when?: ((payload: schemas.ParsePayload) => boolean) | undefined - added:
property $ZodCheckEndsWith._zod: $ZodCheckEndsWithInternals - added:
property $ZodCheckEndsWithDef.suffix: string - added:
property $ZodCheckEndsWithInternals.def: $ZodCheckEndsWithDef - added:
property $ZodCheckEndsWithInternals.issc: errors.$ZodIssueInvalidStringFormat - added:
property $ZodCheckGreaterThan._zod: $ZodCheckGreaterThanInternals<T> - added:
property $ZodCheckGreaterThanDef.check: 'greater_than' - added:
property $ZodCheckGreaterThanDef.inclusive: boolean - added:
property $ZodCheckGreaterThanDef.value: util.Numeric - added:
property $ZodCheckGreaterThanInternals.def: $ZodCheckGreaterThanDef - added:
property $ZodCheckGreaterThanInternals.issc: errors.$ZodIssueTooSmall<T> - added:
property $ZodCheckIncludes._zod: $ZodCheckIncludesInternals - added:
property $ZodCheckIncludesDef.includes: string - added:
property $ZodCheckIncludesDef.position?: number | undefined - added:
property $ZodCheckIncludesInternals.def: $ZodCheckIncludesDef - added:
property $ZodCheckIncludesInternals.issc: errors.$ZodIssueInvalidStringFormat - added:
property $ZodCheckInternals.def: $ZodCheckDef - added:
property $ZodCheckInternals.issc?: errors.$ZodIssueBase - added:
property $ZodCheckInternals.onattach: ((schema: schemas.$ZodType) => void)[] - added:
property $ZodCheckLengthEquals._zod: $ZodCheckLengthEqualsInternals<T> - added:
property $ZodCheckLengthEqualsDef.check: 'length_equals' - added:
property $ZodCheckLengthEqualsDef.length: number - added:
property $ZodCheckLengthEqualsInternals.def: $ZodCheckLengthEqualsDef - added:
property $ZodCheckLengthEqualsInternals.issc: errors.$ZodIssueTooBig<T> | errors.$ZodIssueTooSmall<T> - added:
property $ZodCheckLessThan._zod: $ZodCheckLessThanInternals<T> - added:
property $ZodCheckLessThanDef.check: 'less_than' - added:
property $ZodCheckLessThanDef.inclusive: boolean - added:
property $ZodCheckLessThanDef.value: util.Numeric - added:
property $ZodCheckLessThanInternals.def: $ZodCheckLessThanDef - added:
property $ZodCheckLessThanInternals.issc: errors.$ZodIssueTooBig<T> - added:
property $ZodCheckLowerCase._zod: $ZodCheckLowerCaseInternals - added:
property $ZodCheckLowerCaseInternals.def: $ZodCheckLowerCaseDef - added:
property $ZodCheckLowerCaseInternals.issc: errors.$ZodIssueInvalidStringFormat - added:
property $ZodCheckMaxLength._zod: $ZodCheckMaxLengthInternals<T> - added:
property $ZodCheckMaxLengthDef.check: 'max_length' - added:
property $ZodCheckMaxLengthDef.maximum: number - added:
property $ZodCheckMaxLengthInternals.def: $ZodCheckMaxLengthDef - added:
property $ZodCheckMaxLengthInternals.issc: errors.$ZodIssueTooBig<T> - added:
property $ZodCheckMaxSize._zod: $ZodCheckMaxSizeInternals<T> - added:
property $ZodCheckMaxSizeDef.check: 'max_size' - added:
property $ZodCheckMaxSizeDef.maximum: number - added:
property $ZodCheckMaxSizeInternals.def: $ZodCheckMaxSizeDef - added:
property $ZodCheckMaxSizeInternals.issc: errors.$ZodIssueTooBig<T> - added:
property $ZodCheckMimeType._zod: $ZodCheckMimeTypeInternals<T> - added:
property $ZodCheckMimeTypeDef.check: 'mime_type' - added:
property $ZodCheckMimeTypeDef.mime: util.MimeTypes[] - added:
property $ZodCheckMimeTypeInternals.def: $ZodCheckMimeTypeDef - added:
property $ZodCheckMimeTypeInternals.issc: errors.$ZodIssueInvalidValue - added:
property $ZodCheckMinLength._zod: $ZodCheckMinLengthInternals<T> - added:
property $ZodCheckMinLengthDef.check: 'min_length' - added:
property $ZodCheckMinLengthDef.minimum: number - added:
property $ZodCheckMinLengthInternals.def: $ZodCheckMinLengthDef - added:
property $ZodCheckMinLengthInternals.issc: errors.$ZodIssueTooSmall<T> - added:
property $ZodCheckMinSize._zod: $ZodCheckMinSizeInternals<T> - added:
property $ZodCheckMinSizeDef.check: 'min_size' - added:
property $ZodCheckMinSizeDef.minimum: number - added:
property $ZodCheckMinSizeInternals.def: $ZodCheckMinSizeDef - added:
property $ZodCheckMinSizeInternals.issc: errors.$ZodIssueTooSmall<T> - added:
property $ZodCheckMultipleOf._zod: $ZodCheckMultipleOfInternals<T> - added:
property $ZodCheckMultipleOfDef.check: 'multiple_of' - added:
property $ZodCheckMultipleOfDef.value: T - added:
property $ZodCheckMultipleOfInternals.def: $ZodCheckMultipleOfDef<T> - added:
property $ZodCheckMultipleOfInternals.issc: errors.$ZodIssueNotMultipleOf - added:
property $ZodCheckNumberFormat._zod: $ZodCheckNumberFormatInternals - added:
property $ZodCheckNumberFormatDef.check: 'number_format' - added:
property $ZodCheckNumberFormatDef.format: $ZodNumberFormats - added:
property $ZodCheckNumberFormatInternals.def: $ZodCheckNumberFormatDef - added:
property $ZodCheckNumberFormatInternals.issc: errors.$ZodIssueInvalidType | errors.$ZodIssueTooBig<'number'> | errors.$ZodIssueTooSmall<'number'> - added:
property $ZodCheckOverwrite._zod: $ZodCheckOverwriteInternals<T> - added:
property $ZodCheckOverwriteDef.check: 'overwrite' - added:
property $ZodCheckOverwriteInternals.def: $ZodCheckOverwriteDef<T> - added:
property $ZodCheckOverwriteInternals.issc: never - added:
property $ZodCheckProperty._zod: $ZodCheckPropertyInternals<T> - added:
property $ZodCheckPropertyDef.check: 'property' - added:
property $ZodCheckPropertyDef.property: string - added:
property $ZodCheckPropertyDef.schema: schemas.$ZodType - added:
property $ZodCheckPropertyInternals.def: $ZodCheckPropertyDef - added:
property $ZodCheckPropertyInternals.issc: errors.$ZodIssue - added:
property $ZodCheckRegex._zod: $ZodCheckRegexInternals - added:
property $ZodCheckRegexDef.format: 'regex' - added:
property $ZodCheckRegexDef.pattern: RegExp - added:
property $ZodCheckRegexInternals.def: $ZodCheckRegexDef - added:
property $ZodCheckRegexInternals.issc: errors.$ZodIssueInvalidStringFormat - added:
property $ZodCheckSizeEquals._zod: $ZodCheckSizeEqualsInternals<T> - added:
property $ZodCheckSizeEqualsDef.check: 'size_equals' - added:
property $ZodCheckSizeEqualsDef.size: number - added:
property $ZodCheckSizeEqualsInternals.def: $ZodCheckSizeEqualsDef - added:
property $ZodCheckSizeEqualsInternals.issc: errors.$ZodIssueTooBig<T> | errors.$ZodIssueTooSmall<T> - added:
property $ZodCheckStartsWith._zod: $ZodCheckStartsWithInternals - added:
property $ZodCheckStartsWithDef.prefix: string - added:
property $ZodCheckStartsWithInternals.def: $ZodCheckStartsWithDef - added:
property $ZodCheckStartsWithInternals.issc: errors.$ZodIssueInvalidStringFormat - added:
property $ZodCheckStringFormat._zod: $ZodCheckStringFormatInternals - added:
property $ZodCheckStringFormatDef.check: 'string_format' - added:
property $ZodCheckStringFormatDef.format: Format - added:
property $ZodCheckStringFormatDef.pattern?: RegExp | undefined - added:
property $ZodCheckStringFormatInternals.def: $ZodCheckStringFormatDef - added:
property $ZodCheckStringFormatInternals.issc: errors.$ZodIssueInvalidStringFormat - added:
property $ZodCheckUpperCase._zod: $ZodCheckUpperCaseInternals - added:
property $ZodCheckUpperCaseInternals.def: $ZodCheckUpperCaseDef - added:
property $ZodCheckUpperCaseInternals.issc: errors.$ZodIssueInvalidStringFormat - added:
type $ZodBigIntFormats = 'int64' | 'uint64' - added:
type $ZodChecks = $ZodCheckLessThan | $ZodCheckGreaterThan | $ZodCheckMultipleOf | $ZodCheckNumberFormat | $ZodCheckBigIntFormat | $ZodCheckMaxSize | $ZodCheckMinSize | $ZodChec… - added:
type $ZodNumberFormats = 'int32' | 'uint32' | 'float32' | 'float64' | 'safeint' - added:
type $ZodStringFormatChecks = $ZodCheckRegex | $ZodCheckLowerCase | $ZodCheckUpperCase | $ZodCheckIncludes | $ZodCheckStartsWith | $ZodCheckEndsWith | schemas.$ZodStringFormatTypes - added:
type $ZodStringFormats = 'email' | 'url' | 'emoji' | 'uuid' | 'guid' | 'nanoid' | 'cuid' | 'cuid2' | 'ulid' | 'xid' | 'ksuid' | 'datetime' | 'date' | 'time' | 'duration' | 'ipv4' | 'ip…
- added:
class $ZodAsyncError extends Error - added:
const $brand: unique symbol - added:
const NEVER: never - added:
const globalConfig: $ZodConfig - added:
constructor $ZodAsyncError() - added:
function $constructor<T extends ZodTrait, D = T['_zod']['def']>(name: string, initializer: (inst: T, def: D) => void, params?: { Parent?: typeof Class }): $constructor<T, D> - added:
function config(newConfig?: Partial<$ZodConfig>): $ZodConfig - added:
interface $ZodConfig - added:
interface $constructor<T extends ZodTrait, D = T['_zod']['def']> - added:
method $constructor.init(inst: T, def: D): asserts inst is T - added:
new $constructor(def: D): T - added:
property $ZodConfig.customError?: errors.$ZodErrorMap | undefined - added:
property $ZodConfig.jitless?: boolean | undefined - added:
property $ZodConfig.localeError?: errors.$ZodErrorMap | undefined - added:
type $ZodBranded<T extends schemas.SomeType, Brand extends string | number | symbol> = T & Record<'_zod', Record<'output', output<T> & $brand<Brand>>> - added:
type $brand<T extends string | number | symbol = string | number | symbol> = { [$brand]: { [k in T]: true } } - added:
type infer<T> = T extends { _zod: { output: any } } ? Required<T['_zod']>['output'] : unknown - added:
type input<T> = T extends { _zod: { input: any } } ? Required<T['_zod']>['input'] : unknown - added:
type output<T> = T extends { _zod: { output: any } } ? Required<T['_zod']>['output'] : unknown
- added:
class Doc - added:
constructor Doc(args?: string[]) - added:
method Doc.compile(): Function - added:
method Doc.indented(fn: (doc: Doc) => void): void - added:
method Doc.write(fn: ModeWriter): void - added:
method Doc.write(line: string): void - added:
property Doc.args: string[] - added:
property Doc.content: string[] - added:
property Doc.indent: number
- added:
call $ZodErrorMap(issue: $ZodRawIssue<T>): { message: string } | string | undefined | null - added:
const $ZodError: $constructor<$ZodError> - added:
const $ZodRealError: $constructor<$ZodRealError> - added:
function flattenError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): _FlattenedError<T, U> - added:
function flattenError<T>(error: $ZodError<T>): _FlattenedError<T> - added:
function formatError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodFormattedError<T, U> - added:
function formatError<T>(error: $ZodError<T>): $ZodFormattedError<T> - added:
function prettifyError(error: BaseError): string - added:
function toDotPath(path: (string | number | symbol)[]): string - added:
function treeifyError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodErrorTree<T, U> - added:
function treeifyError<T>(error: $ZodError<T>): $ZodErrorTree<T> - added:
interface $ZodError<T = unknown> extends Error - added:
interface $ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> - added:
interface $ZodIssueBase - added:
interface $ZodIssueCustom extends $ZodIssueBase - added:
interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase - added:
interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase - added:
interface $ZodIssueInvalidStringFormat extends $ZodIssueBase - added:
interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase - added:
interface $ZodIssueInvalidUnion extends $ZodIssueBase - added:
interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase - added:
interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase - added:
interface $ZodIssueStringCommonFormats extends $ZodIssueInvalidStringFormat - added:
interface $ZodIssueStringEndsWith extends $ZodIssueInvalidStringFormat - added:
interface $ZodIssueStringIncludes extends $ZodIssueInvalidStringFormat - added:
interface $ZodIssueStringInvalidJWT extends $ZodIssueInvalidStringFormat - added:
interface $ZodIssueStringInvalidRegex extends $ZodIssueInvalidStringFormat - added:
interface $ZodIssueStringStartsWith extends $ZodIssueInvalidStringFormat - added:
interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase - added:
interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase - added:
interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase - added:
property $ZodError._zod: { output: T; def: $ZodIssue[] } - added:
property $ZodError.issues: $ZodIssue[] - added:
property $ZodError.name: string - added:
property $ZodError.stack?: string - added:
property $ZodError.type: T - added:
property $ZodIssueStringCommonFormats.format: Exclude<$ZodStringFormats, 'regex' | 'jwt' | 'starts_with' | 'ends_with' | 'includes'> - added:
property $ZodIssueStringEndsWith.format: 'ends_with' - added:
property $ZodIssueStringEndsWith.suffix: string - added:
property $ZodIssueStringIncludes.format: 'includes' - added:
property $ZodIssueStringIncludes.includes: string - added:
property $ZodIssueStringInvalidJWT.algorithm?: string - added:
property $ZodIssueStringInvalidJWT.format: 'jwt' - added:
property $ZodIssueStringInvalidRegex.format: 'regex' - added:
property $ZodIssueStringInvalidRegex.pattern: string - added:
property $ZodIssueStringStartsWith.format: 'starts_with' - added:
property $ZodIssueStringStartsWith.prefix: string - added:
readonly property $ZodIssueBase.code?: string - added:
readonly property $ZodIssueBase.input?: unknown - added:
readonly property $ZodIssueBase.message: string - added:
readonly property $ZodIssueBase.path: PropertyKey[] - added:
readonly property $ZodIssueCustom.code: 'custom' - added:
readonly property $ZodIssueCustom.input: unknown - added:
readonly property $ZodIssueCustom.params?: Record<string, any> | undefined - added:
readonly property $ZodIssueInvalidElement.code: 'invalid_element' - added:
readonly property $ZodIssueInvalidElement.input: Input - added:
readonly property $ZodIssueInvalidElement.issues: $ZodIssue[] - added:
readonly property $ZodIssueInvalidElement.key: unknown - added:
readonly property $ZodIssueInvalidElement.origin: 'map' | 'set' - added:
readonly property $ZodIssueInvalidKey.code: 'invalid_key' - added:
readonly property $ZodIssueInvalidKey.input: Input - added:
readonly property $ZodIssueInvalidKey.issues: $ZodIssue[] - added:
readonly property $ZodIssueInvalidKey.origin: 'map' | 'record' - added:
readonly property $ZodIssueInvalidStringFormat.code: 'invalid_format' - added:
readonly property $ZodIssueInvalidStringFormat.format: $ZodStringFormats | (string & {}) - added:
readonly property $ZodIssueInvalidStringFormat.input: string - added:
readonly property $ZodIssueInvalidStringFormat.pattern?: string - added:
readonly property $ZodIssueInvalidType.code: 'invalid_type' - added:
readonly property $ZodIssueInvalidType.expected: $ZodType['_zod']['def']['type'] - added:
readonly property $ZodIssueInvalidType.input: Input - added:
readonly property $ZodIssueInvalidUnion.code: 'invalid_union' - added:
readonly property $ZodIssueInvalidUnion.errors: $ZodIssue[][] - added:
readonly property $ZodIssueInvalidUnion.input: unknown - added:
readonly property $ZodIssueInvalidValue.code: 'invalid_value' - added:
readonly property $ZodIssueInvalidValue.input: Input - added:
readonly property $ZodIssueInvalidValue.values: util.Primitive[] - added:
readonly property $ZodIssueNotMultipleOf.code: 'not_multiple_of' - added:
readonly property $ZodIssueNotMultipleOf.divisor: number - added:
readonly property $ZodIssueNotMultipleOf.input: Input - added:
readonly property $ZodIssueTooBig.code: 'too_big' - added:
readonly property $ZodIssueTooBig.exact?: boolean - added:
readonly property $ZodIssueTooBig.inclusive?: boolean - added:
readonly property $ZodIssueTooBig.input: Input - added:
readonly property $ZodIssueTooBig.maximum: number | bigint - added:
readonly property $ZodIssueTooBig.origin: 'number' | 'int' | 'bigint' | 'date' | 'string' | 'array' | 'set' | 'file' | (string & {}) - added:
readonly property $ZodIssueTooSmall.code: 'too_small' - added:
readonly property $ZodIssueTooSmall.exact?: boolean - added:
readonly property $ZodIssueTooSmall.inclusive?: boolean - added:
readonly property $ZodIssueTooSmall.input: Input - added:
readonly property $ZodIssueTooSmall.minimum: number | bigint - added:
readonly property $ZodIssueTooSmall.origin: 'number' | 'int' | 'bigint' | 'date' | 'string' | 'array' | 'set' | 'file' | (string & {}) - added:
readonly property $ZodIssueUnrecognizedKeys.code: 'unrecognized_keys' - added:
readonly property $ZodIssueUnrecognizedKeys.input: Record<string, unknown> - added:
readonly property $ZodIssueUnrecognizedKeys.keys: string[] - added:
type $ZodErrorTree<T, U = string> = T extends [any, ...any[]] ? { errors: U[]; items?: { [K in keyof T]?: $ZodErrorTree<T[K], U> } } : T extends any[] ? { errors: U[]; items?: Array<$ZodErrorTree… - added:
type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U> - added:
type $ZodFormattedError<T, U = string> = { _errors: U[] } & util.Flatten<_ZodFormattedError<T, U>> - added:
type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInval… - added:
type $ZodIssueCode = $ZodIssue['code'] - added:
type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never - added:
type $ZodStringFormatIssues = $ZodIssueStringCommonFormats | $ZodIssueStringInvalidRegex | $ZodIssueStringInvalidJWT | $ZodIssueStringStartsWith | $ZodIssueStringEndsWith | $ZodIssueStringI…
- added:
class $ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns extends $ZodFunctionOut = $ZodFunctionOut> - added:
constructor $ZodFunction(def: $ZodFunctionDef<Args, Returns>) - added:
function function(): $ZodFunction - added:
function function<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends schemas.$ZodType = schemas.$ZodType>(params?: { input: In; output: Out }): $ZodFunction<In, Out> - added:
function function<const In extends $ZodFunctionIn = $ZodFunctionIn>(params: { input: In }): $ZodFunction<In, $ZodFunctionOut> - added:
function function<const In extends Array<schemas.$ZodType> = Array<schemas.$ZodType>, const Out extends $ZodFunctionOut = $ZodFunctionOut>(params: { input: In; output: Out }): $ZodFunction<$ZodTuple<In, null>, Out> - added:
function function<const In extends Array<schemas.$ZodType> = Array<schemas.$ZodType>>(params: { input: In }): $ZodFunction<$ZodTuple<In, null>, $ZodFunctionOut> - added:
function function<const Out extends $ZodFunctionOut = $ZodFunctionOut>(params: { output: Out }): $ZodFunction<$ZodFunctionIn, Out> - added:
interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> - added:
interface $ZodFunctionParams<I extends $ZodFunctionIn, O extends schemas.$ZodType> - added:
method $ZodFunction.implement<F extends $InferInnerFunctionType<Args, Returns>>(func: F): (...args: Parameters<this['_output']>) => ReturnType<F> extends ReturnType<this['_output']> ? ReturnType<F> : ReturnType<this['_output']> - added:
method $ZodFunction.implementAsync<F extends $InferInnerFunctionTypeAsync<Args, Returns>>(func: F): F extends $InferOuterFunctionTypeAsync<Args, Returns> ? F : $InferOuterFunctionTypeAsync<Args, Returns> - added:
method $ZodFunction.input<NewArgs extends $ZodFunctionIn>(args: NewArgs): $ZodFunction<NewArgs, Returns> - added:
method $ZodFunction.input<const Items extends util.TupleItems, const Rest extends $ZodFunctionOut = $ZodFunctionOut>(args: Items, rest?: Rest): $ZodFunction<schemas.$ZodTuple<Items, Rest>, Returns> - added:
method $ZodFunction.output<NewReturns extends schemas.$ZodType>(output: NewReturns): $ZodFunction<Args, NewReturns> - added:
property $ZodFunction._def: $ZodFunctionDef<Args, Returns> - added:
property $ZodFunction._input: $InferInnerFunctionType<Args, Returns> - added:
property $ZodFunction._output: $InferOuterFunctionType<Args, Returns> - added:
property $ZodFunction.def: $ZodFunctionDef<Args, Returns> - added:
property $ZodFunctionDef.input: In - added:
property $ZodFunctionDef.output: Out - added:
property $ZodFunctionDef.type: 'function' - added:
property $ZodFunctionParams.input?: I - added:
property $ZodFunctionParams.output?: O - added:
type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : core.output<Args>) => core.input<Returns> - added:
type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : core.output<Args>) => util.MaybeAsync<core.input<Returns>> - added:
type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : core.input<Args>) => core.output<Returns> - added:
type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : core.input<Args>) => util.MaybeAsync<core.output<Returns>> - added:
type $ZodFunctionArgs = schemas.$ZodType<unknown[], unknown[]> - added:
type $ZodFunctionIn = $ZodFunctionArgs - added:
type $ZodFunctionOut = schemas.$ZodType
- added:
export * as JSONSchema from './json-schema' - added:
export * as locales from '../locales/index' - added:
export * as regexes from './regexes' - added:
export * as util from './util' - added:
export * from './api' - added:
export * from './checks' - added:
export * from './core' - added:
export * from './doc' - added:
export * from './errors' - added:
export * from './function' - added:
export * from './parse' - added:
export * from './registries' - added:
export * from './schemas' - added:
export * from './to-json-schema' - added:
export * from './versions'
- added:
interface ArraySchema extends JSONSchema - added:
interface BooleanSchema extends JSONSchema - added:
interface IntegerSchema extends JSONSchema - added:
interface NullSchema extends JSONSchema - added:
interface NumberSchema extends JSONSchema - added:
interface ObjectSchema extends JSONSchema - added:
interface StringSchema extends JSONSchema - added:
property ArraySchema.type: 'array' - added:
property BooleanSchema.type: 'boolean' - added:
property IntegerSchema.type: 'integer' - added:
property NullSchema.type: 'null' - added:
property NumberSchema.type: 'number' - added:
property ObjectSchema.type: 'object' - added:
property StringSchema.type: 'string' - added:
type BaseSchema = JSONSchema - added:
type JSONSchema = { [k: string]: unknown; $schema?: 'https://json-schema.org/draft/2020-12/schema' | 'http://json-schema.org/draft-07/schema#'; $id?: string; $anchor?: string; $… - added:
type Schema = ObjectSchema | ArraySchema | StringSchema | NumberSchema | IntegerSchema | BooleanSchema | NullSchema - added:
type _JSONSchema = boolean | JSONSchema
- added:
const _parse: (_Err: $ZodErrorClass) => $Parse - added:
const _parseAsync: (_Err: $ZodErrorClass) => $ParseAsync - added:
const _safeParse: (_Err: $ZodErrorClass) => $SafeParse - added:
const _safeParseAsync: (_Err: $ZodErrorClass) => $SafeParseAsync - added:
const parse: $Parse - added:
const parseAsync: $ParseAsync - added:
const safeParse: $SafeParse - added:
const safeParseAsync: $SafeParseAsync - added:
type $Parse = <T extends schemas.$ZodType>(schema: T, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue>, _params?: { callee?: util.AnyFunc; Err?: $ZodErrorClass… - added:
type $ParseAsync = <T extends schemas.$ZodType>(schema: T, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue>, _params?: { callee?: util.AnyFunc; Err?: $ZodErrorClass… - added:
type $SafeParse = <T extends schemas.$ZodType>(schema: T, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue>) => util.SafeParseResult<core.output<T>> - added:
type $SafeParseAsync = <T extends schemas.$ZodType>(schema: T, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue>) => Promise<util.SafeParseResult<core.output<T>>> - added:
type $ZodErrorClass = { new (issues: errors.$ZodIssue[]): errors.$ZodError }
- added:
const _emoji = '^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$' - added:
const base64: RegExp - added:
const base64url: RegExp - added:
const bigint: RegExp - added:
const boolean: RegExp - added:
const browserEmail: RegExp - added:
const cidrv4: RegExp - added:
const cidrv6: RegExp - added:
const cuid2: RegExp - added:
const cuid: RegExp - added:
const date: RegExp - added:
const domain: RegExp - added:
const duration: RegExp - added:
const e164: RegExp - added:
const email: RegExp - added:
const extendedDuration: RegExp - added:
const guid: RegExp - added:
const hostname: RegExp - added:
const html5Email: RegExp - added:
const integer: RegExp - added:
const ipv4: RegExp - added:
const ipv6: RegExp - added:
const ksuid: RegExp - added:
const lowercase: RegExp - added:
const nanoid: RegExp - added:
const null: RegExp - added:
const number: RegExp - added:
const rfc5322Email: RegExp - added:
const string: (params?: { minimum?: number | undefined; maximum?: number | undefined }) => RegExp - added:
const ulid: RegExp - added:
const undefined: RegExp - added:
const unicodeEmail: RegExp - added:
const uppercase: RegExp - added:
const uuid4: RegExp - added:
const uuid6: RegExp - added:
const uuid7: RegExp - added:
const uuid: (version?: number | undefined) => RegExp - added:
const xid: RegExp - added:
function datetime(args: { precision?: number | null; offset?: boolean; local?: boolean }): RegExp - added:
function emoji(): RegExp - added:
function time(args: { precision?: number | null }): RegExp
- added:
class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> - added:
const $input: unique symbol - added:
const $output: unique symbol - added:
const globalRegistry: $ZodRegistry<GlobalMeta> - added:
function registry<T extends MetadataType = MetadataType, S extends $ZodType = $ZodType>(): $ZodRegistry<T, S> - added:
index JSONSchemaMeta[k: string]: unknown - added:
interface GlobalMeta extends JSONSchemaMeta - added:
interface JSONSchemaMeta - added:
method $ZodRegistry.add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this - added:
method $ZodRegistry.clear(): this - added:
method $ZodRegistry.get<S extends Schema>(schema: S): $replace<Meta, S> | undefined - added:
method $ZodRegistry.has(schema: Schema): boolean - added:
method $ZodRegistry.remove(schema: Schema): this - added:
property $ZodRegistry._idmap: Map<string, Schema> - added:
property $ZodRegistry._map: Map<Schema, $replace<Meta, Schema>> - added:
property $ZodRegistry._meta: Meta - added:
property $ZodRegistry._schema: Schema - added:
property JSONSchemaMeta.deprecated?: boolean | undefined - added:
property JSONSchemaMeta.description?: string | undefined - added:
property JSONSchemaMeta.id?: string | undefined - added:
property JSONSchemaMeta.title?: string | undefined - added:
type $input = typeof $input - added:
type $output = typeof $output - added:
type $replace<Meta, S extends $ZodType> = Meta extends $output ? core.output<S> : Meta extends $input ? core.input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends (...args: infer P) =>…
- added:
const $ZodAny: core.$constructor<$ZodAny> - added:
const $ZodArray: core.$constructor<$ZodArray> - added:
const $ZodBase64: core.$constructor<$ZodBase64> - added:
const $ZodBase64URL: core.$constructor<$ZodBase64URL> - added:
const $ZodBigInt: core.$constructor<$ZodBigInt> - added:
const $ZodBigIntFormat: core.$constructor<$ZodBigIntFormat> - added:
const $ZodBoolean: core.$constructor<$ZodBoolean> - added:
const $ZodCIDRv4: core.$constructor<$ZodCIDRv4> - added:
const $ZodCIDRv6: core.$constructor<$ZodCIDRv6> - added:
const $ZodCUID2: core.$constructor<$ZodCUID2> - added:
const $ZodCUID: core.$constructor<$ZodCUID> - added:
const $ZodCatch: core.$constructor<$ZodCatch> - added:
const $ZodCustom: core.$constructor<$ZodCustom> - added:
const $ZodCustomStringFormat: core.$constructor<$ZodCustomStringFormat> - added:
const $ZodDate: core.$constructor<$ZodDate> - added:
const $ZodDefault: core.$constructor<$ZodDefault> - added:
const $ZodDiscriminatedUnion: core.$constructor<$ZodDiscriminatedUnion> - added:
const $ZodE164: core.$constructor<$ZodE164> - added:
const $ZodEmail: core.$constructor<$ZodEmail> - added:
const $ZodEmoji: core.$constructor<$ZodEmoji> - added:
const $ZodEnum: core.$constructor<$ZodEnum> - added:
const $ZodFile: core.$constructor<$ZodFile> - added:
const $ZodGUID: core.$constructor<$ZodGUID> - added:
const $ZodIPv4: core.$constructor<$ZodIPv4> - added:
const $ZodIPv6: core.$constructor<$ZodIPv6> - added:
const $ZodISODate: core.$constructor<$ZodISODate> - added:
const $ZodISODateTime: core.$constructor<$ZodISODateTime> - added:
const $ZodISODuration: core.$constructor<$ZodISODuration> - added:
const $ZodISOTime: core.$constructor<$ZodISOTime> - added:
const $ZodIntersection: core.$constructor<$ZodIntersection> - added:
const $ZodJWT: core.$constructor<$ZodJWT> - added:
const $ZodKSUID: core.$constructor<$ZodKSUID> - added:
const $ZodLazy: core.$constructor<$ZodLazy> - added:
const $ZodLiteral: core.$constructor<$ZodLiteral> - added:
const $ZodMap: core.$constructor<$ZodMap> - added:
const $ZodNaN: core.$constructor<$ZodNaN> - added:
const $ZodNanoID: core.$constructor<$ZodNanoID> - added:
const $ZodNever: core.$constructor<$ZodNever> - added:
const $ZodNonOptional: core.$constructor<$ZodNonOptional> - added:
const $ZodNull: core.$constructor<$ZodNull> - added:
const $ZodNullable: core.$constructor<$ZodNullable> - added:
const $ZodNumber: core.$constructor<$ZodNumber> - added:
const $ZodNumberFormat: core.$constructor<$ZodNumberFormat> - added:
const $ZodObject: core.$constructor<$ZodObject> - added:
const $ZodOptional: core.$constructor<$ZodOptional> - added:
const $ZodPipe: core.$constructor<$ZodPipe> - added:
const $ZodPrefault: core.$constructor<$ZodPrefault> - added:
const $ZodPromise: core.$constructor<$ZodPromise> - added:
const $ZodReadonly: core.$constructor<$ZodReadonly> - added:
const $ZodRecord: core.$constructor<$ZodRecord> - added:
const $ZodSet: core.$constructor<$ZodSet> - added:
const $ZodString: core.$constructor<$ZodString> - added:
const $ZodStringFormat: core.$constructor<$ZodStringFormat> - added:
const $ZodSuccess: core.$constructor<$ZodSuccess> - added:
const $ZodSymbol: core.$constructor<$ZodSymbol> - added:
const $ZodTemplateLiteral: core.$constructor<$ZodTemplateLiteral> - added:
const $ZodTransform: core.$constructor<$ZodTransform> - added:
const $ZodTuple: core.$constructor<$ZodTuple> - added:
const $ZodType: core.$constructor<$ZodType> - added:
const $ZodULID: core.$constructor<$ZodULID> - added:
const $ZodURL: core.$constructor<$ZodURL> - added:
const $ZodUUID: core.$constructor<$ZodUUID> - added:
const $ZodUndefined: core.$constructor<$ZodUndefined> - added:
const $ZodUnion: core.$constructor<$ZodUnion> - added:
const $ZodUnknown: core.$constructor<$ZodUnknown> - added:
const $ZodVoid: core.$constructor<$ZodVoid> - added:
const $ZodXID: core.$constructor<$ZodXID> - added:
declare global - added:
export { clone } from './util' - added:
function isValidBase64(data: string): boolean - added:
function isValidBase64URL(data: string): boolean - added:
function isValidJWT(token: string, algorithm?: util.JWTAlgorithm | null): boolean - added:
interface $ZodAny extends $ZodType - added:
interface $ZodAnyDef extends $ZodTypeDef - added:
interface $ZodAnyInternals extends $ZodTypeInternals<any, any> - added:
interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T>> - added:
interface $ZodArrayDef<T extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodArrayInternals<T extends SomeType = $ZodType> extends _$ZodTypeInternals - added:
interface $ZodBase64 extends $ZodType - added:
interface $ZodBase64Def extends $ZodStringFormatDef<'base64'> - added:
interface $ZodBase64Internals extends $ZodStringFormatInternals<'base64'> - added:
interface $ZodBase64URL extends $ZodType - added:
interface $ZodBase64URLDef extends $ZodStringFormatDef<'base64url'> - added:
interface $ZodBase64URLInternals extends $ZodStringFormatInternals<'base64url'> - added:
interface $ZodBigInt<T = unknown> extends $ZodType - added:
interface $ZodBigIntDef extends $ZodTypeDef - added:
interface $ZodBigIntFormat extends $ZodType - added:
interface $ZodBigIntFormatDef extends $ZodBigIntDef, checks.$ZodCheckBigIntFormatDef - added:
interface $ZodBigIntFormatInternals extends $ZodBigIntInternals<bigint>, checks.$ZodCheckBigIntFormatInternals - added:
interface $ZodBigIntInternals<T = unknown> extends $ZodTypeInternals<bigint, T> - added:
interface $ZodBoolean<T = unknown> extends $ZodType - added:
interface $ZodBooleanDef extends $ZodTypeDef - added:
interface $ZodBooleanInternals<T = unknown> extends $ZodTypeInternals<boolean, T> - added:
interface $ZodCIDRv4 extends $ZodType - added:
interface $ZodCIDRv4Def extends $ZodStringFormatDef<'cidrv4'> - added:
interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<'cidrv4'> - added:
interface $ZodCIDRv6 extends $ZodType - added:
interface $ZodCIDRv6Def extends $ZodStringFormatDef<'cidrv6'> - added:
interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<'cidrv6'> - added:
interface $ZodCUID extends $ZodType - added:
interface $ZodCUID2 extends $ZodType - added:
interface $ZodCUID2Def extends $ZodStringFormatDef<'cuid2'> - added:
interface $ZodCUID2Internals extends $ZodStringFormatInternals<'cuid2'> - added:
interface $ZodCUIDDef extends $ZodStringFormatDef<'cuid'> - added:
interface $ZodCUIDInternals extends $ZodStringFormatInternals<'cuid'> - added:
interface $ZodCatch<T extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodCatchCtx extends ParsePayload - added:
interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<T>, core.input<T> | util.Whatever> - added:
interface $ZodCustom<O = unknown, I = unknown> extends $ZodType - added:
interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, checks.$ZodCheckDef - added:
interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, checks.$ZodCheckInternals<O> - added:
interface $ZodCustomStringFormat<Format extends string = string> extends $ZodStringFormat<Format> - added:
interface $ZodCustomStringFormatDef<Format extends string = string> extends $ZodStringFormatDef<Format> - added:
interface $ZodCustomStringFormatInternals<Format extends string = string> extends $ZodStringFormatInternals<Format> - added:
interface $ZodDate<T = unknown> extends $ZodType - added:
interface $ZodDateDef extends $ZodTypeDef - added:
interface $ZodDateInternals<T = unknown> extends $ZodTypeInternals<Date, T> - added:
interface $ZodDefault<T extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodDefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<util.NoUndefined<core.output<T>>, core.input<T> | undefined> - added:
interface $ZodDiscriminatedUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType - added:
interface $ZodDiscriminatedUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodUnionDef<Options> - added:
interface $ZodDiscriminatedUnionInternals<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodUnionInternals<Options> - added:
interface $ZodE164 extends $ZodType - added:
interface $ZodE164Def extends $ZodStringFormatDef<'e164'> - added:
interface $ZodE164Internals extends $ZodStringFormatInternals<'e164'> - added:
interface $ZodEmail extends $ZodType - added:
interface $ZodEmailDef extends $ZodStringFormatDef<'email'> - added:
interface $ZodEmailInternals extends $ZodStringFormatInternals<'email'> - added:
interface $ZodEmoji extends $ZodType - added:
interface $ZodEmojiDef extends $ZodStringFormatDef<'emoji'> - added:
interface $ZodEmojiInternals extends $ZodStringFormatInternals<'emoji'> - added:
interface $ZodEnum<T extends util.EnumLike = util.EnumLike> extends $ZodType - added:
interface $ZodEnumDef<T extends util.EnumLike = util.EnumLike> extends $ZodTypeDef - added:
interface $ZodEnumInternals<out T extends util.EnumLike = util.EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T>, $InferEnumInput<T>> - added:
interface $ZodFile extends $ZodType - added:
interface $ZodFileDef extends $ZodTypeDef - added:
interface $ZodFileInternals extends $ZodTypeInternals<File, File> - added:
interface $ZodGUID extends $ZodType - added:
interface $ZodGUIDDef extends $ZodStringFormatDef<'guid'> - added:
interface $ZodGUIDInternals extends $ZodStringFormatInternals<'guid'> - added:
interface $ZodIPv4 extends $ZodType - added:
interface $ZodIPv4Def extends $ZodStringFormatDef<'ipv4'> - added:
interface $ZodIPv4Internals extends $ZodStringFormatInternals<'ipv4'> - added:
interface $ZodIPv6 extends $ZodType - added:
interface $ZodIPv6Def extends $ZodStringFormatDef<'ipv6'> - added:
interface $ZodIPv6Internals extends $ZodStringFormatInternals<'ipv6'> - added:
interface $ZodISODate extends $ZodType - added:
interface $ZodISODateDef extends $ZodStringFormatDef<'date'> - added:
interface $ZodISODateInternals extends $ZodStringFormatInternals<'date'> - added:
interface $ZodISODateTime extends $ZodType - added:
interface $ZodISODateTimeDef extends $ZodStringFormatDef<'datetime'> - added:
interface $ZodISODateTimeInternals extends $ZodStringFormatInternals - added:
interface $ZodISODuration extends $ZodType - added:
interface $ZodISODurationDef extends $ZodStringFormatDef<'duration'> - added:
interface $ZodISODurationInternals extends $ZodStringFormatInternals<'duration'> - added:
interface $ZodISOTime extends $ZodType - added:
interface $ZodISOTimeDef extends $ZodStringFormatDef<'time'> - added:
interface $ZodISOTimeInternals extends $ZodStringFormatInternals<'time'> - added:
interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<A> & core.output<B>, core.input<A> & core.input<B>> - added:
interface $ZodJWT extends $ZodType - added:
interface $ZodJWTDef extends $ZodStringFormatDef<'jwt'> - added:
interface $ZodJWTInternals extends $ZodStringFormatInternals<'jwt'> - added:
interface $ZodKSUID extends $ZodType - added:
interface $ZodKSUIDDef extends $ZodStringFormatDef<'ksuid'> - added:
interface $ZodKSUIDInternals extends $ZodStringFormatInternals<'ksuid'> - added:
interface $ZodLazy<T extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodLazyDef<T extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<T>, core.input<T>> - added:
interface $ZodLiteral<T extends util.Literal = util.Literal> extends $ZodType - added:
interface $ZodLiteralDef<T extends util.Literal> extends $ZodTypeDef - added:
interface $ZodLiteralInternals<T extends util.Literal = util.Literal> extends $ZodTypeInternals<T, T> - added:
interface $ZodMap<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodMapDef<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<core.output<Key>, core.output<Value>>, Map<core.input<Key>, core.input<Value>>> - added:
interface $ZodNaN extends $ZodType - added:
interface $ZodNaNDef extends $ZodTypeDef - added:
interface $ZodNaNInternals extends $ZodTypeInternals<number, number> - added:
interface $ZodNanoID extends $ZodType - added:
interface $ZodNanoIDDef extends $ZodStringFormatDef<'nanoid'> - added:
interface $ZodNanoIDInternals extends $ZodStringFormatInternals<'nanoid'> - added:
interface $ZodNever extends $ZodType - added:
interface $ZodNeverDef extends $ZodTypeDef - added:
interface $ZodNeverInternals extends $ZodTypeInternals<never, never> - added:
interface $ZodNonOptional<T extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodNonOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<util.NoUndefined<core.output<T>>, util.NoUndefined<core.input<T>>> - added:
interface $ZodNull extends $ZodType - added:
interface $ZodNullDef extends $ZodTypeDef - added:
interface $ZodNullInternals extends $ZodTypeInternals<null, null> - added:
interface $ZodNullable<T extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodNullableDef<T extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<T> | null, core.input<T> | null> - added:
interface $ZodNumber<Input = unknown> extends $ZodType - added:
interface $ZodNumberDef extends $ZodTypeDef - added:
interface $ZodNumberFormat extends $ZodType - added:
interface $ZodNumberFormatDef extends $ZodNumberDef, checks.$ZodCheckNumberFormatDef - added:
interface $ZodNumberFormatInternals extends $ZodNumberInternals<number>, checks.$ZodCheckNumberFormatInternals - added:
interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> - added:
interface $ZodObject<out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> - added:
interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef - added:
interface $ZodObjectInternals<out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals - added:
interface $ZodOptional<T extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<T> | undefined, core.input<T> | undefined> - added:
interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<B>, core.input<A>> - added:
interface $ZodPrefault<T extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodPrefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<util.NoUndefined<core.output<T>>, core.input<T> | undefined> - added:
interface $ZodPromise<T extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodPromiseDef<T extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<T>, util.MaybeAsync<core.input<T>>> - added:
interface $ZodReadonly<T extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodReadonlyDef<T extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<util.MakeReadonly<core.output<T>>, util.MakeReadonly<core.input<T>>> - added:
interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> - added:
interface $ZodSet<T extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodSetDef<T extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<core.output<T>>, Set<core.input<T>>> - added:
interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> - added:
interface $ZodStringDef extends $ZodTypeDef - added:
interface $ZodStringFormat<Format extends string = string> extends $ZodType - added:
interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, checks.$ZodCheckStringFormatDef<Format> - added:
interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, checks.$ZodCheckStringFormatInternals - added:
interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> - added:
interface $ZodSuccess<T extends SomeType = $ZodType> extends $ZodType - added:
interface $ZodSuccessDef<T extends SomeType = $ZodType> extends $ZodTypeDef - added:
interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, core.input<T>> - added:
interface $ZodSymbol extends $ZodType - added:
interface $ZodSymbolDef extends $ZodTypeDef - added:
interface $ZodSymbolInternals extends $ZodTypeInternals<symbol, symbol> - added:
interface $ZodTemplateLiteral<Template extends string = string> extends $ZodType - added:
interface $ZodTemplateLiteralDef extends $ZodTypeDef - added:
interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> - added:
interface $ZodTransform<O = unknown, I = unknown> extends $ZodType - added:
interface $ZodTransformDef extends $ZodTypeDef - added:
interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> - added:
interface $ZodTuple<T extends util.TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodType - added:
interface $ZodTupleDef<T extends util.TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeDef - added:
interface $ZodTupleInternals<T extends util.TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeInternals<$InferTupleOutputType<T, Rest>, $InferTupleInputType<T, Rest>> - added:
interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> - added:
interface $ZodTypeDef - added:
interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals - added:
interface $ZodULID extends $ZodType - added:
interface $ZodULIDDef extends $ZodStringFormatDef<'ulid'> - added:
interface $ZodULIDInternals extends $ZodStringFormatInternals<'ulid'> - added:
interface $ZodURL extends $ZodType - added:
interface $ZodURLDef extends $ZodStringFormatDef<'url'> - added:
interface $ZodURLInternals extends $ZodStringFormatInternals<'url'> - added:
interface $ZodUUID extends $ZodType - added:
interface $ZodUUIDDef extends $ZodStringFormatDef<'uuid'> - added:
interface $ZodUUIDInternals extends $ZodStringFormatInternals<'uuid'> - added:
interface $ZodUndefined extends $ZodType - added:
interface $ZodUndefinedDef extends $ZodTypeDef - added:
interface $ZodUndefinedInternals extends $ZodTypeInternals<undefined, undefined> - added:
interface $ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T>> - added:
interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef - added:
interface $ZodUnionInternals<T extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals - added:
interface $ZodUnknown extends $ZodType - added:
interface $ZodUnknownDef extends $ZodTypeDef - added:
interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> - added:
interface $ZodVoid extends $ZodType - added:
interface $ZodVoidDef extends $ZodTypeDef - added:
interface $ZodVoidInternals extends $ZodTypeInternals<void, void> - added:
interface $ZodXID extends $ZodType - added:
interface $ZodXIDDef extends $ZodStringFormatDef<'xid'> - added:
interface $ZodXIDInternals extends $ZodStringFormatInternals<'xid'> - added:
interface ParseContext<T extends errors.$ZodIssueBase = never> - added:
interface ParseContextInternal<T extends errors.$ZodIssueBase = never> extends ParseContext<T> - added:
interface ParsePayload<T = unknown> - added:
interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T['output'], T['input'], T> - added:
interface _$ZodTypeInternals - added:
method _$ZodTypeInternals.parse(payload: ParsePayload<any>, ctx: ParseContextInternal): util.MaybeAsync<ParsePayload> - added:
method _$ZodTypeInternals.run(payload: ParsePayload<any>, ctx: ParseContextInternal): util.MaybeAsync<ParsePayload> - added:
property $ZodAny._zod: $ZodAnyInternals - added:
property $ZodAnyDef.type: 'any' - added:
property $ZodAnyInternals.def: $ZodAnyDef - added:
property $ZodAnyInternals.isst: never - added:
property $ZodArrayDef.element: T - added:
property $ZodArrayDef.type: 'array' - added:
property $ZodArrayInternals.def: $ZodArrayDef<T> - added:
property $ZodArrayInternals.input: core.input<T>[] - added:
property $ZodArrayInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodArrayInternals.output: core.output<T>[] - added:
property $ZodBase64._zod: $ZodBase64Internals - added:
property $ZodBase64URL._zod: $ZodBase64URLInternals - added:
property $ZodBigInt._zod: $ZodBigIntInternals<T> - added:
property $ZodBigIntDef.coerce?: boolean - added:
property $ZodBigIntDef.type: 'bigint' - added:
property $ZodBigIntFormat._zod: $ZodBigIntFormatInternals - added:
property $ZodBigIntFormatDef.check: 'bigint_format' - added:
property $ZodBigIntFormatInternals.def: $ZodBigIntFormatDef - added:
property $ZodBigIntInternals.bag: util.LoosePartial<{ minimum: bigint; maximum: bigint; format: string }> - added:
property $ZodBigIntInternals.def: $ZodBigIntDef - added:
property $ZodBigIntInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodBigIntInternals.pattern: RegExp - added:
property $ZodBoolean._zod: $ZodBooleanInternals<T> - added:
property $ZodBooleanDef.checks?: checks.$ZodCheck<boolean>[] - added:
property $ZodBooleanDef.coerce?: boolean - added:
property $ZodBooleanDef.type: 'boolean' - added:
property $ZodBooleanInternals.def: $ZodBooleanDef - added:
property $ZodBooleanInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodBooleanInternals.pattern: RegExp - added:
property $ZodCIDRv4._zod: $ZodCIDRv4Internals - added:
property $ZodCIDRv4Def.version?: 'v4' - added:
property $ZodCIDRv4Internals.def: $ZodCIDRv4Def - added:
property $ZodCIDRv6._zod: $ZodCIDRv6Internals - added:
property $ZodCIDRv6Def.version?: 'v6' - added:
property $ZodCIDRv6Internals.def: $ZodCIDRv6Def - added:
property $ZodCUID._zod: $ZodCUIDInternals - added:
property $ZodCUID2._zod: $ZodCUID2Internals - added:
property $ZodCatch._zod: $ZodCatchInternals<T> - added:
property $ZodCatchCtx.error: { issues: errors.$ZodIssue[] } - added:
property $ZodCatchCtx.input: unknown - added:
property $ZodCatchDef.catchValue: (ctx: $ZodCatchCtx) => unknown - added:
property $ZodCatchDef.innerType: T - added:
property $ZodCatchDef.type: 'catch' - added:
property $ZodCatchInternals.def: $ZodCatchDef<T> - added:
property $ZodCatchInternals.isst: never - added:
property $ZodCatchInternals.optin: T['_zod']['optin'] - added:
property $ZodCatchInternals.optout: T['_zod']['optout'] - added:
property $ZodCatchInternals.values: T['_zod']['values'] - added:
property $ZodCustom._zod: $ZodCustomInternals<O, I> - added:
property $ZodCustomDef.check: 'custom' - added:
property $ZodCustomDef.error?: errors.$ZodErrorMap | undefined - added:
property $ZodCustomDef.fn: (arg: O) => unknown - added:
property $ZodCustomDef.params?: Record<string, any> | undefined - added:
property $ZodCustomDef.path?: PropertyKey[] | undefined - added:
property $ZodCustomDef.type: 'custom' - added:
property $ZodCustomInternals.bag: util.LoosePartial<{ Class: typeof util.Class }> - added:
property $ZodCustomInternals.def: $ZodCustomDef - added:
property $ZodCustomInternals.issc: errors.$ZodIssue - added:
property $ZodCustomInternals.isst: never - added:
property $ZodCustomStringFormat._zod: $ZodCustomStringFormatInternals<Format> - added:
property $ZodCustomStringFormatDef.fn: (val: string) => unknown - added:
property $ZodCustomStringFormatInternals.def: $ZodCustomStringFormatDef<Format> - added:
property $ZodDate._zod: $ZodDateInternals<T> - added:
property $ZodDateDef.coerce?: boolean - added:
property $ZodDateDef.type: 'date' - added:
property $ZodDateInternals.bag: util.LoosePartial<{ minimum: Date; maximum: Date; format: string }> - added:
property $ZodDateInternals.def: $ZodDateDef - added:
property $ZodDateInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodDefault._zod: $ZodDefaultInternals<T> - added:
property $ZodDefaultDef.defaultValue: util.NoUndefined<core.output<T>> - added:
property $ZodDefaultDef.innerType: T - added:
property $ZodDefaultDef.type: 'default' - added:
property $ZodDefaultInternals.def: $ZodDefaultDef<T> - added:
property $ZodDefaultInternals.isst: never - added:
property $ZodDefaultInternals.optin: 'optional' - added:
property $ZodDefaultInternals.optout?: 'optional' | undefined - added:
property $ZodDefaultInternals.values: T['_zod']['values'] - added:
property $ZodDiscriminatedUnion._zod: $ZodDiscriminatedUnionInternals<T> - added:
property $ZodDiscriminatedUnionDef.discriminator: string - added:
property $ZodDiscriminatedUnionDef.unionFallback?: boolean - added:
property $ZodDiscriminatedUnionInternals.def: $ZodDiscriminatedUnionDef<Options> - added:
property $ZodDiscriminatedUnionInternals.propValues: util.PropValues - added:
property $ZodE164._zod: $ZodE164Internals - added:
property $ZodEmail._zod: $ZodEmailInternals - added:
property $ZodEmoji._zod: $ZodEmojiInternals - added:
property $ZodEnum._zod: $ZodEnumInternals<T> - added:
property $ZodEnumDef.entries: T - added:
property $ZodEnumDef.type: 'enum' - added:
property $ZodEnumInternals.def: $ZodEnumDef<T> - added:
property $ZodEnumInternals.isst: errors.$ZodIssueInvalidValue - added:
property $ZodEnumInternals.pattern: RegExp - added:
property $ZodEnumInternals.values: util.PrimitiveSet - added:
property $ZodFile._zod: $ZodFileInternals - added:
property $ZodFileDef.type: 'file' - added:
property $ZodFileInternals.bag: util.LoosePartial<{ minimum: number; maximum: number; mime: util.MimeTypes[] }> - added:
property $ZodFileInternals.def: $ZodFileDef - added:
property $ZodFileInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodGUID._zod: $ZodGUIDInternals - added:
property $ZodIPv4._zod: $ZodIPv4Internals - added:
property $ZodIPv4Def.version?: 'v4' - added:
property $ZodIPv4Internals.def: $ZodIPv4Def - added:
property $ZodIPv6._zod: $ZodIPv6Internals - added:
property $ZodIPv6Def.version?: 'v6' - added:
property $ZodIPv6Internals.def: $ZodIPv6Def - added:
property $ZodISODate._zod: $ZodISODateInternals - added:
property $ZodISODateTime._zod: $ZodISODateTimeInternals - added:
property $ZodISODateTimeDef.local: boolean - added:
property $ZodISODateTimeDef.offset: boolean - added:
property $ZodISODateTimeDef.precision: number | null - added:
property $ZodISODateTimeInternals.def: $ZodISODateTimeDef - added:
property $ZodISODuration._zod: $ZodISODurationInternals - added:
property $ZodISOTime._zod: $ZodISOTimeInternals - added:
property $ZodISOTimeDef.precision?: number | null - added:
property $ZodISOTimeInternals.def: $ZodISOTimeDef - added:
property $ZodIntersection._zod: $ZodIntersectionInternals<A, B> - added:
property $ZodIntersectionDef.left: Left - added:
property $ZodIntersectionDef.right: Right - added:
property $ZodIntersectionDef.type: 'intersection' - added:
property $ZodIntersectionInternals.def: $ZodIntersectionDef<A, B> - added:
property $ZodIntersectionInternals.isst: never - added:
property $ZodIntersectionInternals.optin: A['_zod']['optin'] | B['_zod']['optin'] - added:
property $ZodIntersectionInternals.optout: A['_zod']['optout'] | B['_zod']['optout'] - added:
property $ZodJWT._zod: $ZodJWTInternals - added:
property $ZodJWTDef.alg?: util.JWTAlgorithm | undefined - added:
property $ZodJWTInternals.def: $ZodJWTDef - added:
property $ZodKSUID._zod: $ZodKSUIDInternals - added:
property $ZodLazy._zod: $ZodLazyInternals<T> - added:
property $ZodLazyDef.getter: () => T - added:
property $ZodLazyDef.type: 'lazy' - added:
property $ZodLazyInternals.def: $ZodLazyDef<T> - added:
property $ZodLazyInternals.innerType: T - added:
property $ZodLazyInternals.isst: never - added:
property $ZodLazyInternals.optin: T['_zod']['optin'] - added:
property $ZodLazyInternals.optout: T['_zod']['optout'] - added:
property $ZodLazyInternals.pattern: T['_zod']['pattern'] - added:
property $ZodLazyInternals.propValues: T['_zod']['propValues'] - added:
property $ZodLiteral._zod: $ZodLiteralInternals<T> - added:
property $ZodLiteralDef.type: 'literal' - added:
property $ZodLiteralDef.values: T[] - added:
property $ZodLiteralInternals.def: $ZodLiteralDef<T> - added:
property $ZodLiteralInternals.isst: errors.$ZodIssueInvalidValue - added:
property $ZodLiteralInternals.pattern: RegExp - added:
property $ZodLiteralInternals.values: Set<T> - added:
property $ZodMap._zod: $ZodMapInternals<Key, Value> - added:
property $ZodMapDef.keyType: Key - added:
property $ZodMapDef.type: 'map' - added:
property $ZodMapDef.valueType: Value - added:
property $ZodMapInternals.def: $ZodMapDef<Key, Value> - added:
property $ZodMapInternals.isst: errors.$ZodIssueInvalidType | errors.$ZodIssueInvalidKey | errors.$ZodIssueInvalidElement<unknown> - added:
property $ZodMapInternals.optin?: 'optional' | undefined - added:
property $ZodMapInternals.optout?: 'optional' | undefined - added:
property $ZodNaN._zod: $ZodNaNInternals - added:
property $ZodNaNDef.type: 'nan' - added:
property $ZodNaNInternals.def: $ZodNaNDef - added:
property $ZodNaNInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodNanoID._zod: $ZodNanoIDInternals - added:
property $ZodNever._zod: $ZodNeverInternals - added:
property $ZodNeverDef.type: 'never' - added:
property $ZodNeverInternals.def: $ZodNeverDef - added:
property $ZodNeverInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodNonOptional._zod: $ZodNonOptionalInternals<T> - added:
property $ZodNonOptionalDef.innerType: T - added:
property $ZodNonOptionalDef.type: 'nonoptional' - added:
property $ZodNonOptionalInternals.def: $ZodNonOptionalDef<T> - added:
property $ZodNonOptionalInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodNonOptionalInternals.optin: 'optional' | undefined - added:
property $ZodNonOptionalInternals.optout: 'optional' | undefined - added:
property $ZodNonOptionalInternals.values: T['_zod']['values'] - added:
property $ZodNull._zod: $ZodNullInternals - added:
property $ZodNullDef.type: 'null' - added:
property $ZodNullInternals.def: $ZodNullDef - added:
property $ZodNullInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodNullInternals.pattern: RegExp - added:
property $ZodNullInternals.values: util.PrimitiveSet - added:
property $ZodNullable._zod: $ZodNullableInternals<T> - added:
property $ZodNullableDef.innerType: T - added:
property $ZodNullableDef.type: 'nullable' - added:
property $ZodNullableInternals.def: $ZodNullableDef<T> - added:
property $ZodNullableInternals.isst: never - added:
property $ZodNullableInternals.optin: T['_zod']['optin'] - added:
property $ZodNullableInternals.optout: T['_zod']['optout'] - added:
property $ZodNullableInternals.pattern: T['_zod']['pattern'] - added:
property $ZodNullableInternals.values: T['_zod']['values'] - added:
property $ZodNumber._zod: $ZodNumberInternals<Input> - added:
property $ZodNumberDef.coerce?: boolean - added:
property $ZodNumberDef.type: 'number' - added:
property $ZodNumberFormat._zod: $ZodNumberFormatInternals - added:
property $ZodNumberFormatInternals.def: $ZodNumberFormatDef - added:
property $ZodNumberFormatInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodNumberInternals.bag: util.LoosePartial<{ minimum: number; maximum: number; exclusiveMinimum: number; exclusiveMaximum: number; format: string; pattern: RegExp }> - added:
property $ZodNumberInternals.def: $ZodNumberDef - added:
property $ZodNumberInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodNumberInternals.pattern: RegExp - added:
property $ZodObject.'~standard': $ZodStandardSchema<this> - added:
property $ZodObjectDef.catchall?: $ZodType | undefined - added:
property $ZodObjectDef.shape: Shape - added:
property $ZodObjectDef.type: 'object' - added:
property $ZodObjectInternals.config: Config - added:
property $ZodObjectInternals.def: $ZodObjectDef<Shape> - added:
property $ZodObjectInternals.input: $InferObjectInput<Shape, Config['in']> - added:
property $ZodObjectInternals.isst: errors.$ZodIssueInvalidType | errors.$ZodIssueUnrecognizedKeys - added:
property $ZodObjectInternals.output: $InferObjectOutput<Shape, Config['out']> - added:
property $ZodObjectInternals.propValues: util.PropValues - added:
property $ZodOptional._zod: $ZodOptionalInternals<T> - added:
property $ZodOptionalDef.innerType: T - added:
property $ZodOptionalDef.type: 'optional' - added:
property $ZodOptionalInternals.def: $ZodOptionalDef<T> - added:
property $ZodOptionalInternals.isst: never - added:
property $ZodOptionalInternals.optin: 'optional' - added:
property $ZodOptionalInternals.optout: 'optional' - added:
property $ZodOptionalInternals.pattern: T['_zod']['pattern'] - added:
property $ZodOptionalInternals.values: T['_zod']['values'] - added:
property $ZodPipe._zod: $ZodPipeInternals<A, B> - added:
property $ZodPipeDef.in: A - added:
property $ZodPipeDef.out: B - added:
property $ZodPipeDef.type: 'pipe' - added:
property $ZodPipeInternals.def: $ZodPipeDef<A, B> - added:
property $ZodPipeInternals.isst: never - added:
property $ZodPipeInternals.optin: A['_zod']['optin'] - added:
property $ZodPipeInternals.optout: B['_zod']['optout'] - added:
property $ZodPipeInternals.values: A['_zod']['values'] - added:
property $ZodPrefault._zod: $ZodPrefaultInternals<T> - added:
property $ZodPrefaultDef.defaultValue: core.input<T> - added:
property $ZodPrefaultDef.innerType: T - added:
property $ZodPrefaultDef.type: 'prefault' - added:
property $ZodPrefaultInternals.def: $ZodPrefaultDef<T> - added:
property $ZodPrefaultInternals.isst: never - added:
property $ZodPrefaultInternals.optin: 'optional' - added:
property $ZodPrefaultInternals.optout?: 'optional' | undefined - added:
property $ZodPrefaultInternals.values: T['_zod']['values'] - added:
property $ZodPromise._zod: $ZodPromiseInternals<T> - added:
property $ZodPromiseDef.innerType: T - added:
property $ZodPromiseDef.type: 'promise' - added:
property $ZodPromiseInternals.def: $ZodPromiseDef<T> - added:
property $ZodPromiseInternals.isst: never - added:
property $ZodReadonly._zod: $ZodReadonlyInternals<T> - added:
property $ZodReadonlyDef.innerType: T - added:
property $ZodReadonlyDef.type: 'readonly' - added:
property $ZodReadonlyInternals.def: $ZodReadonlyDef<T> - added:
property $ZodReadonlyInternals.isst: never - added:
property $ZodReadonlyInternals.optin: T['_zod']['optin'] - added:
property $ZodReadonlyInternals.optout: T['_zod']['optout'] - added:
property $ZodReadonlyInternals.propValues: T['_zod']['propValues'] - added:
property $ZodReadonlyInternals.values: T['_zod']['values'] - added:
property $ZodRecord._zod: $ZodRecordInternals<Key, Value> - added:
property $ZodRecordDef.keyType: Key - added:
property $ZodRecordDef.type: 'record' - added:
property $ZodRecordDef.valueType: Value - added:
property $ZodRecordInternals.def: $ZodRecordDef<Key, Value> - added:
property $ZodRecordInternals.isst: errors.$ZodIssueInvalidType | errors.$ZodIssueInvalidKey<Record<PropertyKey, unknown>> - added:
property $ZodRecordInternals.optin?: 'optional' | undefined - added:
property $ZodRecordInternals.optout?: 'optional' | undefined - added:
property $ZodSet._zod: $ZodSetInternals<T> - added:
property $ZodSetDef.type: 'set' - added:
property $ZodSetDef.valueType: T - added:
property $ZodSetInternals.def: $ZodSetDef<T> - added:
property $ZodSetInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodSetInternals.optin?: 'optional' | undefined - added:
property $ZodSetInternals.optout?: 'optional' | undefined - added:
property $ZodStringDef.checks?: checks.$ZodCheck<string>[] - added:
property $ZodStringDef.coerce?: boolean - added:
property $ZodStringDef.type: 'string' - added:
property $ZodStringFormat._zod: $ZodStringFormatInternals<Format> - added:
property $ZodStringFormatInternals.def: $ZodStringFormatDef<Format> - added:
property $ZodStringInternals.bag: util.LoosePartial<{ minimum: number; maximum: number; patterns: Set<RegExp>; format: string; contentEncoding: string }> - added:
property $ZodStringInternals.def: $ZodStringDef - added:
property $ZodStringInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodStringInternals.pattern: RegExp - added:
property $ZodSuccess._zod: $ZodSuccessInternals<T> - added:
property $ZodSuccessDef.innerType: T - added:
property $ZodSuccessDef.type: 'success' - added:
property $ZodSuccessInternals.def: $ZodSuccessDef<T> - added:
property $ZodSuccessInternals.isst: never - added:
property $ZodSuccessInternals.optin: T['_zod']['optin'] - added:
property $ZodSuccessInternals.optout: 'optional' | undefined - added:
property $ZodSymbol._zod: $ZodSymbolInternals - added:
property $ZodSymbolDef.type: 'symbol' - added:
property $ZodSymbolInternals.def: $ZodSymbolDef - added:
property $ZodSymbolInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodTemplateLiteral._zod: $ZodTemplateLiteralInternals<Template> - added:
property $ZodTemplateLiteralDef.parts: $ZodTemplateLiteralPart[] - added:
property $ZodTemplateLiteralDef.type: 'template_literal' - added:
property $ZodTemplateLiteralInternals.def: $ZodTemplateLiteralDef - added:
property $ZodTemplateLiteralInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodTemplateLiteralInternals.pattern: RegExp - added:
property $ZodTransform._zod: $ZodTransformInternals<O, I> - added:
property $ZodTransformDef.transform: (input: unknown, payload: ParsePayload<unknown>) => util.MaybeAsync<unknown> - added:
property $ZodTransformDef.type: 'transform' - added:
property $ZodTransformInternals.def: $ZodTransformDef - added:
property $ZodTransformInternals.isst: never - added:
property $ZodTuple._zod: $ZodTupleInternals<T, Rest> - added:
property $ZodTupleDef.items: T - added:
property $ZodTupleDef.rest: Rest - added:
property $ZodTupleDef.type: 'tuple' - added:
property $ZodTupleInternals.def: $ZodTupleDef<T, Rest> - added:
property $ZodTupleInternals.isst: errors.$ZodIssueInvalidType | errors.$ZodIssueTooBig<unknown[]> | errors.$ZodIssueTooSmall<unknown[]> - added:
property $ZodType.'~standard': $ZodStandardSchema<this> - added:
property $ZodType._zod: Internals - added:
property $ZodTypeDef.checks?: checks.$ZodCheck<never>[] - added:
property $ZodTypeDef.error?: errors.$ZodErrorMap<never> | undefined - added:
property $ZodTypeDef.type: 'string' | 'number' | 'int' | 'boolean' | 'bigint' | 'symbol' | 'null' | 'undefined' | 'void' | 'never' | 'any' | 'unknown' | 'date' | 'object' | 'record' | 'file' | 'array' | 'tuple' | 'union' | 'intersection' | 'map' | 'set' | 'enum' | 'literal' | 'nullable' | 'optional' | 'nonoptional' | 'success' | 'transform' | 'default' | 'prefault' | 'catch' | 'nan' | 'pipe' | 'r… - added:
property $ZodTypeInternals.input: I - added:
property $ZodTypeInternals.output: O - added:
property $ZodULID._zod: $ZodULIDInternals - added:
property $ZodURL._zod: $ZodURLInternals - added:
property $ZodURLDef.hostname?: RegExp | undefined - added:
property $ZodURLDef.protocol?: RegExp | undefined - added:
property $ZodURLInternals.def: $ZodURLDef - added:
property $ZodUUID._zod: $ZodUUIDInternals - added:
property $ZodUUIDDef.version?: 'v1' | 'v2' | 'v3' | 'v4' | 'v5' | 'v6' | 'v7' | 'v8' - added:
property $ZodUUIDInternals.def: $ZodUUIDDef - added:
property $ZodUndefined._zod: $ZodUndefinedInternals - added:
property $ZodUndefinedDef.type: 'undefined' - added:
property $ZodUndefinedInternals.def: $ZodUndefinedDef - added:
property $ZodUndefinedInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodUndefinedInternals.pattern: RegExp - added:
property $ZodUndefinedInternals.values: util.PrimitiveSet - added:
property $ZodUnion._zod: $ZodUnionInternals<T> - added:
property $ZodUnionDef.options: Options - added:
property $ZodUnionDef.type: 'union' - added:
property $ZodUnionInternals.def: $ZodUnionDef<T> - added:
property $ZodUnionInternals.input: $InferUnionInput<T[number]> - added:
property $ZodUnionInternals.isst: errors.$ZodIssueInvalidUnion - added:
property $ZodUnionInternals.optin: IsOptionalIn<T[number]> extends false ? 'optional' | undefined : 'optional' - added:
property $ZodUnionInternals.optout: IsOptionalOut<T[number]> extends false ? 'optional' | undefined : 'optional' - added:
property $ZodUnionInternals.output: $InferUnionOutput<T[number]> - added:
property $ZodUnionInternals.pattern: T[number]['_zod']['pattern'] - added:
property $ZodUnionInternals.values: T[number]['_zod']['values'] - added:
property $ZodUnknown._zod: $ZodUnknownInternals - added:
property $ZodUnknownDef.type: 'unknown' - added:
property $ZodUnknownInternals.def: $ZodUnknownDef - added:
property $ZodUnknownInternals.isst: never - added:
property $ZodVoid._zod: $ZodVoidInternals - added:
property $ZodVoidDef.type: 'void' - added:
property $ZodVoidInternals.def: $ZodVoidDef - added:
property $ZodVoidInternals.isst: errors.$ZodIssueInvalidType - added:
property $ZodXID._zod: $ZodXIDInternals - added:
property ParsePayload.issues: errors.$ZodRawIssue[] - added:
property ParsePayload.value: T - added:
property _$ZodTypeInternals.bag: Record<string, unknown> - added:
property _$ZodTypeInternals.constr: new (def: any) => $ZodType - added:
property _$ZodTypeInternals.def: $ZodTypeDef - added:
property _$ZodTypeInternals.deferred: util.AnyFunc[] | undefined - added:
property _$ZodTypeInternals.isst: errors.$ZodIssueBase - added:
property _$ZodTypeInternals.optin?: 'optional' | undefined - added:
property _$ZodTypeInternals.optout?: 'optional' | undefined - added:
property _$ZodTypeInternals.parent?: $ZodType | undefined - added:
property _$ZodTypeInternals.pattern: RegExp | undefined - added:
property _$ZodTypeInternals.propValues?: util.PropValues | undefined - added:
property _$ZodTypeInternals.toJSONSchema?: () => unknown - added:
property _$ZodTypeInternals.traits: Set<string> - added:
property _$ZodTypeInternals.values?: util.PrimitiveSet | undefined - added:
property _$ZodTypeInternals.version: typeof version - added:
readonly property ParseContext.error?: errors.$ZodErrorMap<T> - added:
readonly property ParseContext.jitless?: boolean - added:
readonly property ParseContext.reportInput?: boolean - added:
readonly property ParseContextInternal.async?: boolean | undefined - added:
type $InferEnumInput<T extends util.EnumLike> = T[keyof T] & {} - added:
type $InferEnumOutput<T extends util.EnumLike> = T[keyof T] & {} - added:
type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? util.IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, core.input<T[keyof T]>> : keyof (T & Extra) extends nev… - added:
type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? util.IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, core.output<T[keyof T]>> : keyof (T & Extra) extends ne… - added:
type $InferTupleInputType<T extends util.TupleItems, Rest extends SomeType | null> = [...TupleInputTypeWithOptionals<T>, ...(Rest extends SomeType ? core.input<Rest>[] : [])] - added:
type $InferTupleOutputType<T extends util.TupleItems, Rest extends SomeType | null> = [...TupleOutputTypeWithOptionals<T>, ...(Rest extends SomeType ? core.output<Rest>[] : [])] - added:
type $InferUnionInput<T extends SomeType> = T extends any ? core.input<T> : never - added:
type $InferUnionOutput<T extends SomeType> = T extends any ? core.output<T> : never - added:
type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<core.input<Key>, core.input<Value>>> : Record<core.input<Key>, core.input<Value>> - added:
type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<core.output<Key>, core.output<Value>>> : Record<core.output<Key>, core.output<Value>> - added:
type $PartsToTemplateLiteral<Parts extends $ZodTemplateLiteralPart[]> = [] extends Parts ? `` : Parts extends [...infer Rest, infer Last extends $ZodTemplateLiteralPart] ? Rest extends $ZodTemplateLiteralPart[] ? AppendToTemplateLi… - added:
type $ZodLooseShape = Record<string, any> - added:
type $ZodObjectConfig = { out: Record<string, unknown>; in: Record<string, unknown> } - added:
type $ZodRecordKey = $ZodType<string | number | symbol, string | number | symbol> - added:
type $ZodShape = Readonly<{ [k: string]: $ZodType }> - added:
type $ZodStandardSchema<T> = StandardSchemaV1.Props<core.input<T>, core.output<T>> - added:
type $ZodStringFormatTypes = $ZodGUID | $ZodUUID | $ZodEmail | $ZodURL | $ZodEmoji | $ZodNanoID | $ZodCUID | $ZodCUID2 | $ZodULID | $ZodXID | $ZodKSUID | $ZodISODateTime | $ZodISODate | $Z… - added:
type $ZodTemplateLiteralPart = LiteralPart | SchemaPart - added:
type $ZodTypes = $ZodString | $ZodNumber | $ZodBigInt | $ZodBoolean | $ZodDate | $ZodSymbol | $ZodUndefined | $ZodNullable | $ZodNull | $ZodAny | $ZodUnknown | $ZodNever | $Zod… - added:
type $catchall<T extends SomeType> = { out: { [k: string]: core.output<T> }; in: { [k: string]: core.input<T> } } - added:
type $loose = { out: Record<string, unknown>; in: Record<string, unknown> } - added:
type $partial = { '~~partial': true } - added:
type $strict = { out: {}; in: {} } - added:
type $strip = { out: {}; in: {} } - added:
type CheckFn<T> = (input: ParsePayload<T>) => util.MaybeAsync<void> - added:
type ConcatenateTupleOfStrings<T extends string[]> = T extends [infer First extends string, ...infer Rest extends string[]] ? Rest extends string[] ? First extends '' ? ConcatenateTupleOfStrings<Rest> : `${First}… - added:
type ConvertPartsToStringTuple<Parts extends $ZodTemplateLiteralPart[]> = { [K in keyof Parts]: Parts[K] extends LiteralPart ? `${UndefinedToEmptyString<Parts[K]>}` : Parts[K] extends $ZodType ? `${core.output<Parts[K]> extends infer… - added:
type SomeType = { _zod: _$ZodTypeInternals } - added:
type ToTemplateLiteral<Parts extends $ZodTemplateLiteralPart[]> = ConcatenateTupleOfStrings<ConvertPartsToStringTuple<Parts>>
- added:
interface StandardSchemaV1.FailureResult - added:
interface StandardSchemaV1.Issue - added:
interface StandardSchemaV1.PathSegment - added:
interface StandardSchemaV1.Props<Input = unknown, Output = Input> - added:
interface StandardSchemaV1.SuccessResult<Output> - added:
interface StandardSchemaV1.Types<Input = unknown, Output = Input> - added:
interface StandardSchemaV1<Input = unknown, Output = Input> - added:
namespace StandardSchemaV1 - added:
readonly property StandardSchemaV1.'~standard': StandardSchemaV1.Props<Input, Output> - added:
readonly property StandardSchemaV1.FailureResult.issues: ReadonlyArray<Issue> - added:
readonly property StandardSchemaV1.Issue.message: string - added:
readonly property StandardSchemaV1.Issue.path?: ReadonlyArray<PropertyKey | PathSegment> | undefined - added:
readonly property StandardSchemaV1.PathSegment.key: PropertyKey - added:
readonly property StandardSchemaV1.Props.types?: Types<Input, Output> | undefined - added:
readonly property StandardSchemaV1.Props.validate: (value: unknown) => Result<Output> | Promise<Result<Output>> - added:
readonly property StandardSchemaV1.Props.vendor: string - added:
readonly property StandardSchemaV1.Props.version: 1 - added:
readonly property StandardSchemaV1.SuccessResult.issues?: undefined - added:
readonly property StandardSchemaV1.SuccessResult.value: Output - added:
readonly property StandardSchemaV1.Types.input: Input - added:
readonly property StandardSchemaV1.Types.output: Output - added:
type StandardSchemaV1.InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['input'] - added:
type StandardSchemaV1.InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['output'] - added:
type StandardSchemaV1.Result<Output> = SuccessResult<Output> | FailureResult
- added:
class JSONSchemaGenerator - added:
constructor JSONSchemaGenerator(params?: JSONSchemaGeneratorParams) - added:
function toJSONSchema(registry: $ZodRegistry<{ id?: string | undefined }>, _params?: RegistryToJSONSchemaParams): { schemas: Record<string, JSONSchema.BaseSchema> } - added:
function toJSONSchema(schema: schemas.$ZodType, _params?: ToJSONSchemaParams): JSONSchema.BaseSchema - added:
method JSONSchemaGenerator.emit(schema: schemas.$ZodType, _params?: EmitParams): JSONSchema.BaseSchema - added:
method JSONSchemaGenerator.process(schema: schemas.$ZodType, _params?: ProcessParams): JSONSchema.BaseSchema - added:
property JSONSchemaGenerator.counter: number - added:
property JSONSchemaGenerator.io: 'input' | 'output' - added:
property JSONSchemaGenerator.metadataRegistry: $ZodRegistry<Record<string, any>> - added:
property JSONSchemaGenerator.override: (ctx: { zodSchema: schemas.$ZodTypes; jsonSchema: JSONSchema.BaseSchema; path: (string | number)[] }) => void - added:
property JSONSchemaGenerator.seen: Map<schemas.$ZodType, Seen> - added:
property JSONSchemaGenerator.target: 'draft-7' | 'draft-2020-12' - added:
property JSONSchemaGenerator.unrepresentable: 'throw' | 'any'
- added:
abstract class Class - added:
const BIGINT_FORMAT_RANGES: Record<checks.$ZodBigIntFormats, [bigint, bigint]> - added:
const NUMBER_FORMAT_RANGES: Record<checks.$ZodNumberFormats, [number, number]> - added:
const allowsEval: { value: boolean } - added:
const captureStackTrace: (targetObject: object, constructorOpt?: Function) => void - added:
const getParsedType: (data: any) => ParsedTypes - added:
const primitiveTypes: Set<string> - added:
const propertyKeyTypes: Set<string> - added:
constructor Class(..._args: any[]) - added:
function aborted(x: schemas.ParsePayload, startIndex?: number): boolean - added:
function assert<T>(_: any): asserts _ is T - added:
function assertEqual<A, B>(val: AssertEqual<A, B>): AssertEqual<A, B> - added:
function assertIs<T>(_arg: T): void - added:
function assertNever(_x: never): never - added:
function assertNotEqual<A, B>(val: AssertNotEqual<A, B>): AssertNotEqual<A, B> - added:
function assignProp<T extends object, K extends PropertyKey>(target: T, prop: K, value: K extends keyof T ? T[K] : any): void - added:
function cached<T>(getter: () => T): { value: T } - added:
function cleanEnum(obj: Record<string, EnumValue>): EnumValue[] - added:
function cleanRegex(source: string): string - added:
function clone<T extends schemas.$ZodType>(inst: T, def?: T['_zod']['def'], params?: { parent: boolean }): T - added:
function createTransparentProxy<T extends object>(getter: () => T): T - added:
function defineLazy<T, K extends keyof T>(object: T, key: K, getter: () => T[K]): void - added:
function esc(str: string): string - added:
function escapeRegex(str: string): string - added:
function extend(schema: schemas.$ZodObject, shape: schemas.$ZodShape): any - added:
function finalizeIssue(iss: errors.$ZodRawIssue, ctx: schemas.ParseContextInternal | undefined, config: $ZodConfig): errors.$ZodIssue - added:
function floatSafeRemainder(val: number, step: number): number - added:
function getElementAtPath(obj: any, path: (string | number)[] | null | undefined): any - added:
function getEnumValues(entries: EnumLike): EnumValue[] - added:
function getLengthableOrigin(input: any): 'array' | 'string' | 'unknown' - added:
function getSizableOrigin(input: any): 'set' | 'map' | 'file' | 'unknown' - added:
function isObject(data: any): data is Record<PropertyKey, unknown> - added:
function isPlainObject(o: any): o is Record<PropertyKey, unknown> - added:
function issue(_iss: errors.$ZodRawIssue): errors.$ZodRawIssue - added:
function issue(_iss: string, input: any, inst: any): errors.$ZodRawIssue - added:
function joinValues<T extends Primitive[]>(array: T, separator?: string): string - added:
function jsonStringifyReplacer(_: string, value: any): any - added:
function merge(a: schemas.$ZodObject, b: schemas.$ZodObject): any - added:
function normalizeParams<T>(_params: T): Normalize<T> - added:
function nullish(input: any): boolean - added:
function numKeys(data: any): number - added:
function omit(schema: schemas.$ZodObject, mask: object): any - added:
function optionalKeys(shape: schemas.$ZodShape): string[] - added:
function partial(Class: SchemaClass<schemas.$ZodOptional> | null, schema: schemas.$ZodObject, mask: object | undefined): any - added:
function pick(schema: schemas.$ZodObject, mask: Record<string, unknown>): any - added:
function prefixIssues(path: PropertyKey, issues: errors.$ZodRawIssue[]): errors.$ZodRawIssue[] - added:
function promiseAllObject<T extends object>(promisesObj: T): Promise<{ [k in keyof T]: Awaited<T[k]> }> - added:
function randomString(length?: number): string - added:
function required(Class: SchemaClass<schemas.$ZodNonOptional>, schema: schemas.$ZodObject, mask: object | undefined): any - added:
function stringifyPrimitive(value: any): string - added:
function unwrapMessage(message: string | { message: string } | undefined | null): string | undefined - added:
type AnyFunc = (...args: any[]) => any - added:
type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false - added:
type AssertExtends<T, U> = T extends U ? T : never - added:
type AssertNotEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? false : true - added:
type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | { readonly [Symbol.toStringTag]: string } | Date | Error | Generator | Promise<unknown> | RegExp - added:
type CleanKey<T extends PropertyKey> = T extends `?${infer K}` ? K : T extends `${infer K}?` ? K : T - added:
type Constructor<T, Def extends any[] = any[]> = new (...args: Def) => T - added:
type EmptyObject = Record<string, never> - added:
type EmptyToNever<T> = keyof T extends never ? never : T - added:
type EnumLike = Readonly<Record<string, EnumValue>> - added:
type EnumValue = string | number - added:
type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never> - added:
type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K] } & { [K in keyof B]: B[K] }> - added:
type ExtractIndexSignature<T> = { [K in keyof T as string extends K ? K : K extends string ? never : K]: T[K] } - added:
type Flatten<T> = Identity<{ [k in keyof T]: T[k] }> - added:
type FromCleanMap<T extends schemas.$ZodLooseShape> = { [k in keyof T as k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k]: k } - added:
type HasLength = { length: number } - added:
type HasSize = { size: number } - added:
type IPVersion = 'v4' | 'v6' - added:
type Identity<T> = T - added:
type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined } - added:
type IsAny<T> = 0 extends 1 & T ? true : false - added:
type IsProp<T, K extends keyof T> = T[K] extends AnyFunc ? never : K - added:
type JSONType = string | number | boolean | null | JSONType[] | { [key: string]: JSONType } - added:
type JWTAlgorithm = 'HS256' | 'HS384' | 'HS512' | 'RS256' | 'RS384' | 'RS512' | 'ES256' | 'ES384' | 'ES512' | 'PS256' | 'PS384' | 'PS512' | 'EdDSA' | (string & {}) - added:
type KeyOf<T> = keyof OmitIndexSignature<T> - added:
type Keys<T extends object> = keyof OmitIndexSignature<T> - added:
type KeysArray<T extends object> = Flatten<(keyof T & string)[]> - added:
type KeysEnum<T extends object> = ToEnum<Exclude<keyof T, symbol>> - added:
type Literal = string | number | bigint | boolean | null | undefined - added:
type LiteralArray = Array<Literal> - added:
type LoosePartial<T extends object> = InexactPartial<T> & { [k: string]: unknown } - added:
type MakePartial<T, K extends keyof T> = Omit<T, K> & InexactPartial<Pick<T, K>> - added:
type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail… - added:
type MakeRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>> - added:
type Mapped<T> = { [k in keyof T]: T[k] } - added:
type Mask<Keys extends PropertyKey> = { [K in Keys]?: true } - added:
type MaybeAsync<T> = T | Promise<T> - added:
type MimeTypes = 'application/json' | 'application/xml' | 'application/x-www-form-urlencoded' | 'application/javascript' | 'application/pdf' | 'application/zip' | 'application/… - added:
type NoNever<T> = Identity<{ [k in NoNeverKeys<T>]: k extends keyof T ? T[k] : never }> - added:
type NoNeverKeys<T> = { [k in keyof T]: [T[k]] extends [never] ? never : k }[keyof T] - added:
type NoUndefined<T> = T extends undefined ? never : T - added:
type Normalize<T> = T extends undefined ? never : T extends Record<any, any> ? Flatten<{ [k in keyof Omit<T, 'error' | 'message'>]: T[k] } & ('error' extends keyof T ? { error?: E… - added:
type Numeric = number | bigint | Date - added:
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> - added:
type OmitIndexSignature<T> = { [K in keyof T as string extends K ? never : K extends string ? K : never]: T[K] } - added:
type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>> - added:
type ParsedTypes = 'string' | 'number' | 'bigint' | 'boolean' | 'symbol' | 'undefined' | 'object' | 'function' | 'file' | 'date' | 'array' | 'map' | 'set' | 'nan' | 'null' | 'pro… - added:
type Prettify<T> = { [K in keyof T]: T[K] } & {} - added:
type Primitive = string | number | symbol | bigint | boolean | null | undefined - added:
type PrimitiveArray = Array<Primitive> - added:
type PrimitiveSet = Set<Primitive> - added:
type PropValues = Record<string, Set<Primitive>> - added:
type SafeParseError<T> = { success: false; data?: never; error: errors.$ZodError<T> } - added:
type SafeParseResult<T> = SafeParseSuccess<T> | SafeParseError<T> - added:
type SafeParseSuccess<T> = { success: true; data: T; error?: never } - added:
type SchemaClass<T extends schemas.SomeType> = { new (def: T['_zod']['def']): T } - added:
type SomeObject = Record<PropertyKey, any> - added:
type ToCleanMap<T extends schemas.$ZodLooseShape> = { [k in keyof T]: k extends `?${infer K}` ? K : k extends `${infer K}?` ? K : k } - added:
type ToEnum<T extends EnumValue> = Flatten<{ [k in T]: k }> - added:
type TupleItems = ReadonlyArray<schemas.SomeType> - added:
type Whatever = {} | undefined | null - added:
type Writeable<T> = { -readonly [P in keyof T]: T[P] } & {}
- added:
const version: { readonly major: 4; readonly minor: 0; readonly patch: number }
- added:
default z4 - added:
export * from './classic/index'
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
const parsedType: (data: any) => string - added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
const parsedType: (data: any) => string - added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
export { default as ar } from './ar' - added:
export { default as az } from './az' - added:
export { default as be } from './be' - added:
export { default as ca } from './ca' - added:
export { default as cs } from './cs' - added:
export { default as de } from './de' - added:
export { default as en } from './en' - added:
export { default as eo } from './eo' - added:
export { default as es } from './es' - added:
export { default as fa } from './fa' - added:
export { default as fi } from './fi' - added:
export { default as fr } from './fr' - added:
export { default as frCA } from './fr-CA' - added:
export { default as he } from './he' - added:
export { default as hu } from './hu' - added:
export { default as id } from './id' - added:
export { default as it } from './it' - added:
export { default as ja } from './ja' - added:
export { default as kh } from './kh' - added:
export { default as ko } from './ko' - added:
export { default as mk } from './mk' - added:
export { default as ms } from './ms' - added:
export { default as nl } from './nl' - added:
export { default as no } from './no' - added:
export { default as ota } from './ota' - added:
export { default as pl } from './pl' - added:
export { default as ps } from './ps' - added:
export { default as pt } from './pt' - added:
export { default as ru } from './ru' - added:
export { default as sl } from './sl' - added:
export { default as sv } from './sv' - added:
export { default as ta } from './ta' - added:
export { default as th } from './th' - added:
export { default as tr } from './tr' - added:
export { default as ua } from './ua' - added:
export { default as ur } from './ur' - added:
export { default as vi } from './vi' - added:
export { default as zhCN } from './zh-CN' - added:
export { default as zhTW } from './zh-TW'
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
const parsedType: (data: any) => string - added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
default function (): { localeError: errors.$ZodErrorMap }
- added:
export { _endsWith as endsWith } from '../core/index' - added:
export { _gt as gt } from '../core/index' - added:
export { _gte as gte } from '../core/index' - added:
export { _gte as minimum } from '../core/index' - added:
export { _includes as includes } from '../core/index' - added:
export { _length as length } from '../core/index' - added:
export { _lowercase as lowercase } from '../core/index' - added:
export { _lt as lt } from '../core/index' - added:
export { _lte as lte } from '../core/index' - added:
export { _lte as maximum } from '../core/index' - added:
export { _maxLength as maxLength } from '../core/index' - added:
export { _maxSize as maxSize } from '../core/index' - added:
export { _mime as mime } from '../core/index' - added:
export { _minLength as minLength } from '../core/index' - added:
export { _minSize as minSize } from '../core/index' - added:
export { _multipleOf as multipleOf } from '../core/index' - added:
export { _negative as negative } from '../core/index' - added:
export { _nonnegative as nonnegative } from '../core/index' - added:
export { _nonpositive as nonpositive } from '../core/index' - added:
export { _normalize as normalize } from '../core/index' - added:
export { _overwrite as overwrite } from '../core/index' - added:
export { _positive as positive } from '../core/index' - added:
export { _property as property } from '../core/index' - added:
export { _regex as regex } from '../core/index' - added:
export { _size as size } from '../core/index' - added:
export { _startsWith as startsWith } from '../core/index' - added:
export { _toLowerCase as toLowerCase } from '../core/index' - added:
export { _toUpperCase as toUpperCase } from '../core/index' - added:
export { _trim as trim } from '../core/index' - added:
export { _uppercase as uppercase } from '../core/index'
- added:
function bigint<T = unknown>(params?: string | core.$ZodBigIntParams): schemas.ZodMiniBigInt<T> - added:
function boolean<T = unknown>(params?: string | core.$ZodBooleanParams): schemas.ZodMiniBoolean<T> - added:
function date<T = unknown>(params?: string | core.$ZodDateParams): schemas.ZodMiniDate<T> - added:
function number<T = unknown>(params?: string | core.$ZodNumberParams): schemas.ZodMiniNumber<T> - added:
function string<T = unknown>(params?: string | core.$ZodStringParams): schemas.ZodMiniString<T>
- added:
export * as coerce from './coerce' - added:
export * as core from '../core/index' - added:
export * as iso from './iso' - added:
export * as locales from '../locales/index' - added:
export * from './checks' - added:
export * from './parse' - added:
export * from './schemas' - added:
export { $brand } from '../core/index' - added:
export { $input } from '../core/index' - added:
export { $output } from '../core/index' - added:
export { NEVER } from '../core/index' - added:
export { TimePrecision } from '../core/index' - added:
export { ZodMiniISODate } from './iso' - added:
export { ZodMiniISODateTime } from './iso' - added:
export { ZodMiniISODuration } from './iso' - added:
export { ZodMiniISOTime } from './iso' - added:
export { clone } from '../core/index' - added:
export { config } from '../core/index' - added:
export { flattenError } from '../core/index' - added:
export { formatError } from '../core/index' - added:
export { function } from '../core/index' - added:
export { globalRegistry } from '../core/index' - added:
export { infer } from '../core/index' - added:
export { input } from '../core/index' - added:
export { output } from '../core/index' - added:
export { prettifyError } from '../core/index' - added:
export { regexes } from '../core/index' - added:
export { registry } from '../core/index' - added:
export { toJSONSchema } from '../core/index' - added:
export { treeifyError } from '../core/index'
- added:
export * from './external' - added:
export { z }
- added:
const ZodMiniISODate: core.$constructor<ZodMiniISODate> - added:
const ZodMiniISODateTime: core.$constructor<ZodMiniISODateTime> - added:
const ZodMiniISODuration: core.$constructor<ZodMiniISODuration> - added:
const ZodMiniISOTime: core.$constructor<ZodMiniISOTime> - added:
function date(params?: string | core.$ZodISODateParams): ZodMiniISODate - added:
function datetime(params?: string | core.$ZodISODateTimeParams): ZodMiniISODateTime - added:
function duration(params?: string | core.$ZodISODurationParams): ZodMiniISODuration - added:
function time(params?: string | core.$ZodISOTimeParams): ZodMiniISOTime - added:
interface ZodMiniISODate extends schemas.ZodMiniStringFormat<'date'> - added:
interface ZodMiniISODateTime extends schemas.ZodMiniStringFormat<'datetime'> - added:
interface ZodMiniISODuration extends schemas.ZodMiniStringFormat<'duration'> - added:
interface ZodMiniISOTime extends schemas.ZodMiniStringFormat<'time'> - added:
property ZodMiniISODate._zod: core.$ZodISODateInternals - added:
property ZodMiniISODateTime._zod: core.$ZodISODateTimeInternals - added:
property ZodMiniISODuration._zod: core.$ZodISODurationInternals - added:
property ZodMiniISOTime._zod: core.$ZodISOTimeInternals
- added:
export { parse } from '../core/index' - added:
export { parseAsync } from '../core/index' - added:
export { safeParse } from '../core/index' - added:
export { safeParseAsync } from '../core/index'
- added:
const ZodMiniAny: core.$constructor<ZodMiniAny> - added:
const ZodMiniArray: core.$constructor<ZodMiniArray> - added:
const ZodMiniBase64: core.$constructor<ZodMiniBase64> - added:
const ZodMiniBase64URL: core.$constructor<ZodMiniBase64URL> - added:
const ZodMiniBigInt: core.$constructor<ZodMiniBigInt> - added:
const ZodMiniBigIntFormat: core.$constructor<ZodMiniBigIntFormat> - added:
const ZodMiniBoolean: core.$constructor<ZodMiniBoolean> - added:
const ZodMiniCIDRv4: core.$constructor<ZodMiniCIDRv4> - added:
const ZodMiniCIDRv6: core.$constructor<ZodMiniCIDRv6> - added:
const ZodMiniCUID2: core.$constructor<ZodMiniCUID2> - added:
const ZodMiniCUID: core.$constructor<ZodMiniCUID> - added:
const ZodMiniCatch: core.$constructor<ZodMiniCatch> - added:
const ZodMiniCustom: core.$constructor<ZodMiniCustom> - added:
const ZodMiniCustomStringFormat: core.$constructor<ZodMiniCustomStringFormat> - added:
const ZodMiniDate: core.$constructor<ZodMiniDate> - added:
const ZodMiniDefault: core.$constructor<ZodMiniDefault> - added:
const ZodMiniDiscriminatedUnion: core.$constructor<ZodMiniDiscriminatedUnion> - added:
const ZodMiniE164: core.$constructor<ZodMiniE164> - added:
const ZodMiniEmail: core.$constructor<ZodMiniEmail> - added:
const ZodMiniEmoji: core.$constructor<ZodMiniEmoji> - added:
const ZodMiniEnum: core.$constructor<ZodMiniEnum> - added:
const ZodMiniFile: core.$constructor<ZodMiniFile> - added:
const ZodMiniGUID: core.$constructor<ZodMiniGUID> - added:
const ZodMiniIPv4: core.$constructor<ZodMiniIPv4> - added:
const ZodMiniIPv6: core.$constructor<ZodMiniIPv6> - added:
const ZodMiniIntersection: core.$constructor<ZodMiniIntersection> - added:
const ZodMiniJWT: core.$constructor<ZodMiniJWT> - added:
const ZodMiniKSUID: core.$constructor<ZodMiniKSUID> - added:
const ZodMiniLazy: core.$constructor<ZodMiniLazy> - added:
const ZodMiniLiteral: core.$constructor<ZodMiniLiteral> - added:
const ZodMiniMap: core.$constructor<ZodMiniMap> - added:
const ZodMiniNaN: core.$constructor<ZodMiniNaN> - added:
const ZodMiniNanoID: core.$constructor<ZodMiniNanoID> - added:
const ZodMiniNever: core.$constructor<ZodMiniNever> - added:
const ZodMiniNonOptional: core.$constructor<ZodMiniNonOptional> - added:
const ZodMiniNull: core.$constructor<ZodMiniNull> - added:
const ZodMiniNullable: core.$constructor<ZodMiniNullable> - added:
const ZodMiniNumber: core.$constructor<ZodMiniNumber> - added:
const ZodMiniNumberFormat: core.$constructor<ZodMiniNumberFormat> - added:
const ZodMiniObject: core.$constructor<ZodMiniObject> - added:
const ZodMiniOptional: core.$constructor<ZodMiniOptional> - added:
const ZodMiniPipe: core.$constructor<ZodMiniPipe> - added:
const ZodMiniPrefault: core.$constructor<ZodMiniPrefault> - added:
const ZodMiniPromise: core.$constructor<ZodMiniPromise> - added:
const ZodMiniReadonly: core.$constructor<ZodMiniReadonly> - added:
const ZodMiniRecord: core.$constructor<ZodMiniRecord> - added:
const ZodMiniSet: core.$constructor<ZodMiniSet> - added:
const ZodMiniString: core.$constructor<ZodMiniString> - added:
const ZodMiniStringFormat: core.$constructor<ZodMiniStringFormat> - added:
const ZodMiniSuccess: core.$constructor<ZodMiniSuccess> - added:
const ZodMiniSymbol: core.$constructor<ZodMiniSymbol> - added:
const ZodMiniTemplateLiteral: core.$constructor<ZodMiniTemplateLiteral> - added:
const ZodMiniTransform: core.$constructor<ZodMiniTransform> - added:
const ZodMiniTuple: core.$constructor<ZodMiniTuple> - added:
const ZodMiniType: core.$constructor<ZodMiniType> - added:
const ZodMiniULID: core.$constructor<ZodMiniULID> - added:
const ZodMiniURL: core.$constructor<ZodMiniURL> - added:
const ZodMiniUUID: core.$constructor<ZodMiniUUID> - added:
const ZodMiniUndefined: core.$constructor<ZodMiniUndefined> - added:
const ZodMiniUnion: core.$constructor<ZodMiniUnion> - added:
const ZodMiniUnknown: core.$constructor<ZodMiniUnknown> - added:
const ZodMiniVoid: core.$constructor<ZodMiniVoid> - added:
const ZodMiniXID: core.$constructor<ZodMiniXID> - added:
const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodMiniPipe<ZodMiniPipe<ZodMiniString, ZodMiniTransform<boolean, string>>, ZodMiniBoolean> - added:
function _default<T extends SomeType>(innerType: T, defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)): ZodMiniDefault<T> - added:
function any(): ZodMiniAny - added:
function array<T extends SomeType>(element: T, params?: string | core.$ZodArrayParams): ZodMiniArray<T> - added:
function base64(params?: string | core.$ZodBase64Params): ZodMiniBase64 - added:
function base64url(params?: string | core.$ZodBase64URLParams): ZodMiniBase64URL - added:
function bigint(params?: string | core.$ZodBigIntParams): ZodMiniBigInt<bigint> - added:
function boolean(params?: string | core.$ZodBooleanParams): ZodMiniBoolean<boolean> - added:
function catch<T extends SomeType>(innerType: T, catchValue: core.output<T> | ((ctx: core.$ZodCatchCtx) => core.output<T>)): ZodMiniCatch<T> - added:
function catchall<T extends ZodMiniObject, U extends SomeType>(inst: T, catchall: U): ZodMiniObject<T['shape'], core.$catchall<U>> - added:
function check<O = unknown>(fn: core.CheckFn<O>, params?: string | core.$ZodCustomParams): core.$ZodCheck<O> - added:
function cidrv4(params?: string | core.$ZodCIDRv4Params): ZodMiniCIDRv4 - added:
function cidrv6(params?: string | core.$ZodCIDRv6Params): ZodMiniCIDRv6 - added:
function cuid(params?: string | core.$ZodCUIDParams): ZodMiniCUID - added:
function cuid2(params?: string | core.$ZodCUID2Params): ZodMiniCUID2 - added:
function custom<O = unknown, I = O>(fn?: (data: O) => unknown, _params?: string | core.$ZodCustomParams | undefined): ZodMiniCustom<O, I> - added:
function date(params?: string | core.$ZodDateParams): ZodMiniDate<Date> - added:
function discriminatedUnion<Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]]>(discriminator: string, options: Types, params?: string | core.$ZodDiscriminatedUnionParams): ZodMiniDiscriminatedUnion<Types> - added:
function e164(params?: string | core.$ZodE164Params): ZodMiniE164 - added:
function email(params?: string | core.$ZodEmailParams): ZodMiniEmail - added:
function emoji(params?: string | core.$ZodEmojiParams): ZodMiniEmoji - added:
function enum<T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<T> - added:
function enum<const T extends readonly string[]>(values: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<util.ToEnum<T[number]>> - added:
function extend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(schema: T, shape: U): ZodMiniObject<util.Extend<T['shape'], U>, T['_zod']['config']> - added:
function file(params?: string | core.$ZodFileParams): ZodMiniFile - added:
function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat - added:
function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat - added:
function guid(params?: string | core.$ZodGUIDParams): ZodMiniGUID - added:
function instanceof<T extends typeof Class>(cls: T, params?: core.$ZodCustomParams): ZodMiniCustom<InstanceType<T>, InstanceType<T>> - added:
function int(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat - added:
function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat - added:
function int64(params?: string | core.$ZodBigIntFormatParams): ZodMiniBigIntFormat - added:
function intersection<T extends SomeType, U extends SomeType>(left: T, right: U): ZodMiniIntersection<T, U> - added:
function ipv4(params?: string | core.$ZodIPv4Params): ZodMiniIPv4 - added:
function ipv6(params?: string | core.$ZodIPv6Params): ZodMiniIPv6 - added:
function json(): ZodMiniJSONSchema - added:
function jwt(params?: string | core.$ZodJWTParams): ZodMiniJWT - added:
function keyof<T extends ZodMiniObject>(schema: T): ZodMiniLiteral<Exclude<keyof T['shape'], symbol>> - added:
function ksuid(params?: string | core.$ZodKSUIDParams): ZodMiniKSUID - added:
function lazy<T extends SomeType>(getter: () => T): ZodMiniLazy<T> - added:
function literal<const T extends ReadonlyArray<util.Literal>>(value: T, params?: string | core.$ZodLiteralParams): ZodMiniLiteral<T[number]> - added:
function literal<const T extends util.Literal>(value: T, params?: string | core.$ZodLiteralParams): ZodMiniLiteral<T> - added:
function looseObject<T extends core.$ZodLooseShape>(shape: T, params?: string | core.$ZodObjectParams): ZodMiniObject<T, core.$loose> - added:
function map<Key extends SomeType, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodMapParams): ZodMiniMap<Key, Value> - added:
function merge<T extends ZodMiniObject, U extends ZodMiniObject>(a: T, b: U): ZodMiniObject<util.Extend<T['shape'], U['shape']>, T['_zod']['config']> - added:
function nan(params?: string | core.$ZodNaNParams): ZodMiniNaN - added:
function nanoid(params?: string | core.$ZodNanoIDParams): ZodMiniNanoID - added:
function nativeEnum<T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<T> - added:
function never(params?: string | core.$ZodNeverParams): ZodMiniNever - added:
function nonoptional<T extends SomeType>(innerType: T, params?: string | core.$ZodNonOptionalParams): ZodMiniNonOptional<T> - added:
function null(params?: string | core.$ZodNullParams): ZodMiniNull - added:
function nullable<T extends SomeType>(innerType: T): ZodMiniNullable<T> - added:
function nullish<T extends SomeType>(innerType: T): ZodMiniOptional<ZodMiniNullable<T>> - added:
function number(params?: string | core.$ZodNumberParams): ZodMiniNumber<number> - added:
function object<T extends core.$ZodLooseShape = Record<never, SomeType>>(shape?: T, params?: string | core.$ZodObjectParams): ZodMiniObject<T, core.$strip> - added:
function omit<T extends ZodMiniObject, const M extends util.Mask<keyof T['shape']>>(schema: T, mask: M): ZodMiniObject<util.Flatten<Omit<T['shape'], keyof M>>, T['_zod']['config']> - added:
function optional<T extends SomeType>(innerType: T): ZodMiniOptional<T> - added:
function partial<T extends ZodMiniObject, M extends util.Mask<keyof T['shape']>>(schema: T, mask: M): ZodMiniObject<{ [k in keyof T['shape']]: k extends keyof M ? ZodMiniOptional<T['shape'][k]> : T['shape'][k] }, T['_zod']['config']> - added:
function partial<T extends ZodMiniObject>(schema: T): ZodMiniObject<{ [k in keyof T['shape']]: ZodMiniOptional<T['shape'][k]> }, T['_zod']['config']> - added:
function partialRecord<Key extends core.$ZodRecordKey, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): ZodMiniRecord<Key & core.$partial, Value> - added:
function pick<T extends ZodMiniObject, M extends util.Mask<keyof T['shape']>>(schema: T, mask: M): ZodMiniObject<util.Flatten<Pick<T['shape'], keyof T['shape'] & keyof M>>, T['_zod']['config']> - added:
function pipe<const A extends SomeType, B extends core.$ZodType<unknown, core.output<A>> = core.$ZodType<unknown, core.output<A>>>(in_: A, out: B | core.$ZodType<unknown, core.output<A>>): ZodMiniPipe<A, B> - added:
function prefault<T extends SomeType>(innerType: T, defaultValue: util.NoUndefined<core.input<T>> | (() => util.NoUndefined<core.input<T>>)): ZodMiniPrefault<T> - added:
function promise<T extends SomeType>(innerType: T): ZodMiniPromise<T> - added:
function readonly<T extends SomeType>(innerType: T): ZodMiniReadonly<T> - added:
function record<Key extends core.$ZodRecordKey, Value extends SomeType>(keyType: Key, valueType: Value, params?: string | core.$ZodRecordParams): ZodMiniRecord<Key, Value> - added:
function refine<T>(fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>, _params?: string | core.$ZodCustomParams): core.$ZodCheck<T> - added:
function required<T extends ZodMiniObject, M extends util.Mask<keyof T['shape']>>(schema: T, mask: M): ZodMiniObject<util.Extend<T['shape'], { [k in keyof M & keyof T['shape']]: ZodMiniNonOptional<T['shape'][k]> }>, T['_zod']['config']> - added:
function required<T extends ZodMiniObject>(schema: T): ZodMiniObject<{ [k in keyof T['shape']]: ZodMiniNonOptional<T['shape'][k]> }, T['_zod']['config']> - added:
function set<Value extends SomeType>(valueType: Value, params?: string | core.$ZodSetParams): ZodMiniSet<Value> - added:
function strictObject<T extends core.$ZodLooseShape>(shape: T, params?: string | core.$ZodObjectParams): ZodMiniObject<T, core.$strict> - added:
function string(params?: string | core.$ZodStringParams): ZodMiniString<string> - added:
function stringFormat<Format extends string>(format: Format, fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp, _params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<Format> - added:
function success<T extends SomeType>(innerType: T): ZodMiniSuccess<T> - added:
function symbol(params?: string | core.$ZodSymbolParams): ZodMiniSymbol - added:
function templateLiteral<const Parts extends core.$ZodTemplateLiteralPart[]>(parts: Parts, params?: string | core.$ZodTemplateLiteralParams): ZodMiniTemplateLiteral<core.$PartsToTemplateLiteral<Parts>> - added:
function transform<I = unknown, O = I>(fn: (input: I, ctx: core.ParsePayload) => O): ZodMiniTransform<Awaited<O>, I> - added:
function tuple(items: [], params?: string | core.$ZodTupleParams): ZodMiniTuple<[], null> - added:
function tuple<const T extends readonly [SomeType, ...SomeType[]], Rest extends SomeType>(items: T, rest: Rest, params?: string | core.$ZodTupleParams): ZodMiniTuple<T, Rest> - added:
function tuple<const T extends readonly [SomeType, ...SomeType[]]>(items: T, params?: string | core.$ZodTupleParams): ZodMiniTuple<T, null> - added:
function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniNumberFormat - added:
function uint64(params?: string | core.$ZodBigIntFormatParams): ZodMiniBigIntFormat - added:
function ulid(params?: string | core.$ZodULIDParams): ZodMiniULID - added:
function undefined(params?: string | core.$ZodUndefinedParams): ZodMiniUndefined - added:
function union<const T extends readonly SomeType[]>(options: T, params?: string | core.$ZodUnionParams): ZodMiniUnion<T> - added:
function unknown(): ZodMiniUnknown - added:
function url(params?: string | core.$ZodURLParams): ZodMiniURL - added:
function uuid(params?: string | core.$ZodUUIDParams): ZodMiniUUID - added:
function uuidv4(params?: string | core.$ZodUUIDv4Params): ZodMiniUUID - added:
function uuidv6(params?: string | core.$ZodUUIDv6Params): ZodMiniUUID - added:
function uuidv7(params?: string | core.$ZodUUIDv7Params): ZodMiniUUID - added:
function void(params?: string | core.$ZodVoidParams): ZodMiniVoid - added:
function xid(params?: string | core.$ZodXIDParams): ZodMiniXID - added:
interface ZodMiniAny extends _ZodMiniType<core.$ZodAnyInternals> - added:
interface ZodMiniArray<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodArrayInternals<T>>, core.$ZodArray<T> - added:
interface ZodMiniBase64 extends _ZodMiniString<core.$ZodBase64Internals> - added:
interface ZodMiniBase64URL extends _ZodMiniString<core.$ZodBase64URLInternals> - added:
interface ZodMiniBigInt<T = unknown> extends _ZodMiniType<core.$ZodBigIntInternals<T>>, core.$ZodBigInt<T> - added:
interface ZodMiniBigIntFormat extends _ZodMiniType<core.$ZodBigIntFormatInternals> - added:
interface ZodMiniBoolean<T = unknown> extends _ZodMiniType<core.$ZodBooleanInternals<T>> - added:
interface ZodMiniCIDRv4 extends _ZodMiniString<core.$ZodCIDRv4Internals> - added:
interface ZodMiniCIDRv6 extends _ZodMiniString<core.$ZodCIDRv6Internals> - added:
interface ZodMiniCUID extends _ZodMiniString<core.$ZodCUIDInternals> - added:
interface ZodMiniCUID2 extends _ZodMiniString<core.$ZodCUID2Internals> - added:
interface ZodMiniCatch<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodCatchInternals<T>> - added:
interface ZodMiniCustom<O = unknown, I = unknown> extends _ZodMiniType<core.$ZodCustomInternals<O, I>> - added:
interface ZodMiniCustomStringFormat<Format extends string = string> extends ZodMiniStringFormat<Format>, core.$ZodCustomStringFormat<Format> - added:
interface ZodMiniDate<T = unknown> extends _ZodMiniType<core.$ZodDateInternals<T>> - added:
interface ZodMiniDefault<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodDefaultInternals<T>> - added:
interface ZodMiniDiscriminatedUnion<Options extends readonly SomeType[] = readonly core.$ZodType[]> extends ZodMiniUnion<Options> - added:
interface ZodMiniE164 extends _ZodMiniString<core.$ZodE164Internals> - added:
interface ZodMiniEmail extends _ZodMiniString<core.$ZodEmailInternals> - added:
interface ZodMiniEmoji extends _ZodMiniString<core.$ZodEmojiInternals> - added:
interface ZodMiniEnum<T extends util.EnumLike = util.EnumLike> extends _ZodMiniType<core.$ZodEnumInternals<T>> - added:
interface ZodMiniFile extends _ZodMiniType<core.$ZodFileInternals> - added:
interface ZodMiniGUID extends _ZodMiniString<core.$ZodGUIDInternals> - added:
interface ZodMiniIPv4 extends _ZodMiniString<core.$ZodIPv4Internals> - added:
interface ZodMiniIPv6 extends _ZodMiniString<core.$ZodIPv6Internals> - added:
interface ZodMiniIntersection<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodIntersectionInternals<A, B>> - added:
interface ZodMiniJSONSchema extends _ZodMiniJSONSchema - added:
interface ZodMiniJSONSchemaInternals extends _ZodMiniJSONSchemaInternals - added:
interface ZodMiniJWT extends _ZodMiniString<core.$ZodJWTInternals> - added:
interface ZodMiniKSUID extends _ZodMiniString<core.$ZodKSUIDInternals> - added:
interface ZodMiniLazy<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodLazyInternals<T>> - added:
interface ZodMiniLiteral<T extends util.Literal = util.Literal> extends _ZodMiniType<core.$ZodLiteralInternals<T>> - added:
interface ZodMiniMap<Key extends SomeType = core.$ZodType, Value extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodMapInternals<Key, Value>> - added:
interface ZodMiniNaN extends _ZodMiniType<core.$ZodNaNInternals> - added:
interface ZodMiniNanoID extends _ZodMiniString<core.$ZodNanoIDInternals> - added:
interface ZodMiniNever extends _ZodMiniType<core.$ZodNeverInternals> - added:
interface ZodMiniNonOptional<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodNonOptionalInternals<T>> - added:
interface ZodMiniNull extends _ZodMiniType<core.$ZodNullInternals> - added:
interface ZodMiniNullable<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodNullableInternals<T>> - added:
interface ZodMiniNumber<Input = unknown> extends _ZodMiniNumber<core.$ZodNumberInternals<Input>>, core.$ZodNumber<Input> - added:
interface ZodMiniNumberFormat extends _ZodMiniNumber<core.$ZodNumberFormatInternals>, core.$ZodNumberFormat - added:
interface ZodMiniObject<out Shape extends core.$ZodShape = core.$ZodShape, out Config extends core.$ZodObjectConfig = core.$strip> extends ZodMiniType<any, any, core.$ZodObjectInternals<Shape, Config>>, core.$ZodObject<Shape, Config> - added:
interface ZodMiniOptional<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodOptionalInternals<T>>, core.$ZodOptional<T> - added:
interface ZodMiniPipe<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodPipeInternals<A, B>> - added:
interface ZodMiniPrefault<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodPrefaultInternals<T>> - added:
interface ZodMiniPromise<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodPromiseInternals<T>> - added:
interface ZodMiniReadonly<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodReadonlyInternals<T>> - added:
interface ZodMiniRecord<Key extends core.$ZodRecordKey = core.$ZodRecordKey, Value extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodRecordInternals<Key, Value>> - added:
interface ZodMiniSet<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodSetInternals<T>> - added:
interface ZodMiniString<Input = unknown> extends _ZodMiniString<core.$ZodStringInternals<Input>>, core.$ZodString<Input> - added:
interface ZodMiniStringFormat<Format extends string = string> extends _ZodMiniString<core.$ZodStringFormatInternals<Format>>, core.$ZodStringFormat<Format> - added:
interface ZodMiniSuccess<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodSuccessInternals<T>> - added:
interface ZodMiniSymbol extends _ZodMiniType<core.$ZodSymbolInternals> - added:
interface ZodMiniTemplateLiteral<Template extends string = string> extends _ZodMiniType<core.$ZodTemplateLiteralInternals<Template>> - added:
interface ZodMiniTransform<O = unknown, I = unknown> extends _ZodMiniType<core.$ZodTransformInternals<O, I>> - added:
interface ZodMiniTuple<T extends util.TupleItems = readonly core.$ZodType[], Rest extends SomeType | null = core.$ZodType | null> extends _ZodMiniType<core.$ZodTupleInternals<T, Rest>> - added:
interface ZodMiniType<out Output = unknown, out Input = unknown, out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>> extends core.$ZodType<Output, Input, Internals> - added:
interface ZodMiniULID extends _ZodMiniString<core.$ZodULIDInternals> - added:
interface ZodMiniURL extends _ZodMiniString<core.$ZodURLInternals> - added:
interface ZodMiniUUID extends _ZodMiniString<core.$ZodUUIDInternals> - added:
interface ZodMiniUndefined extends _ZodMiniType<core.$ZodUndefinedInternals> - added:
interface ZodMiniUnion<T extends readonly SomeType[] = readonly core.$ZodType[]> extends _ZodMiniType<core.$ZodUnionInternals<T>> - added:
interface ZodMiniUnknown extends _ZodMiniType<core.$ZodUnknownInternals> - added:
interface ZodMiniVoid extends _ZodMiniType<core.$ZodVoidInternals> - added:
interface ZodMiniXID extends _ZodMiniString<core.$ZodXIDInternals> - added:
interface _ZodMiniString<T extends core.$ZodStringInternals<unknown> = core.$ZodStringInternals<unknown>> extends _ZodMiniType<T>, core.$ZodString<T['input']> - added:
method ZodMiniType.brand<T extends PropertyKey = PropertyKey>(value?: T): PropertyKey extends T ? this : this & Record<'_zod', Record<'output', core.output<this> & core.$brand<T>>> - added:
method ZodMiniType.check(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this - added:
method ZodMiniType.clone(def?: Internals['def'], params?: { parent: boolean }): this - added:
method ZodMiniType.parse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): core.output<this> - added:
method ZodMiniType.parseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<core.output<this>> - added:
method ZodMiniType.register<R extends core.$ZodRegistry>(registry: R, ...meta: this extends R['_schema'] ? undefined extends R['_meta'] ? [core.$replace<R['_meta'], this>?] : [core.$replace<R['_meta'], this>] : ['Incompatible schema']): this - added:
method ZodMiniType.safeParse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): util.SafeParseResult<core.output<this>> - added:
method ZodMiniType.safeParseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<util.SafeParseResult<core.output<this>>> - added:
property ZodMiniCustomStringFormat._zod: core.$ZodCustomStringFormatInternals<Format> - added:
property ZodMiniDiscriminatedUnion._zod: core.$ZodDiscriminatedUnionInternals<Options> - added:
property ZodMiniJSONSchema._zod: ZodMiniJSONSchemaInternals - added:
property ZodMiniJSONSchemaInternals.input: util.JSONType - added:
property ZodMiniJSONSchemaInternals.output: util.JSONType - added:
property ZodMiniObject.shape: Shape - added:
property ZodMiniType.def: Internals['def'] - added:
property _ZodMiniString._zod: T - added:
type RequiredInterfaceShape<Shape extends core.$ZodLooseShape, Keys extends PropertyKey = keyof Shape> = util.Identity<{ [k in keyof Shape as k extends Keys ? k : never]: ZodMiniNonOptional<Shape[k]> } & { [k in keyof Shape as k extends Keys ? never : k]: Shape[k]…