Upgrading valibot 0.29 to 0.30
Breaking0.29.0 → 0.30.0Breaking2New3Changed1Fixed2Other2
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- Remove deprecated properties of safeParse and safeParseAsync method.
- Remove any deprecated method, schema and validation functions.
Must act 2 items need code or config changes
What you must change
Breaking2
Remove deprecated properties of safeParse and safeParseAsync method.
safeParsesafeParseAsyncRemove any deprecated method, schema and validation functions.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- removed:
const discriminatedUnion: typeof variant - removed:
const discriminatedUnionAsync: typeof variantAsync - removed:
const enumType: typeof picklist - removed:
const enumTypeAsync: typeof picklistAsync - removed:
const intersection: typeof intersect - removed:
const maxRange: typeof maxValue - removed:
const minRange: typeof minValue - removed:
const nativeEnum: typeof enum_ - removed:
const nativeEnumAsync: typeof enumAsync - removed:
const nullType: typeof null_ - removed:
const nullTypeAsync: typeof nullAsync - removed:
const recursive: typeof lazy - removed:
const recursiveAsync: typeof lazyAsync - removed:
const undefinedType: typeof undefined_ - removed:
const undefinedTypeAsync: typeof undefinedAsync - removed:
const useDefault: typeof withDefault - removed:
const voidType: typeof void_ - removed:
const voidTypeAsync: typeof voidAsync - removed:
function equal<TInput extends string | number | bigint | boolean, TRequirement extends TInput>(requirement: TRequirement, message?: ErrorMessage): EqualValidation<TInput, TRequirement> - removed:
function passthrough<TSchema extends ObjectSchema<ObjectEntries, undefined>>(schema: TSchema): TSchema - removed:
function passthroughAsync<TSchema extends ObjectSchemaAsync<ObjectEntriesAsync, undefined>>(schema: TSchema): TSchema - removed:
function strict<TSchema extends ObjectSchema<ObjectEntries, undefined>>(schema: TSchema): TSchema - removed:
function strictAsync<TSchema extends ObjectSchemaAsync<ObjectEntriesAsync, undefined>>(schema: TSchema): TSchema - removed:
function strip<TSchema extends ObjectSchema<ObjectEntries, undefined>>(schema: TSchema): TSchema - removed:
function stripAsync<TSchema extends ObjectSchemaAsync<ObjectEntriesAsync, undefined>>(schema: TSchema): TSchema - removed:
function withDefault<TSchema extends BaseSchema | BaseSchemaAsync>(schema: TSchema, value: Input<TSchema> | (() => Input<TSchema>)): TSchema - removed:
type AnySchema<TOutput = any> = BaseSchema<any, TOutput> & { type: 'any'; pipe: Pipe<any> | undefined } - removed:
type AnySchemaAsync<TOutput = any> = BaseSchemaAsync<any, TOutput> & { type: 'any'; pipe: PipeAsync<any> | undefined } - removed:
type ArrayPathItem = { type: 'array'; origin: 'value'; input: unknown[]; key: number; value: unknown } - removed:
type ArraySchema<TItem extends BaseSchema, TOutput = Output<TItem>[]> = BaseSchema<Input<TItem>[], TOutput> & { type: 'array'; item: TItem; message: ErrorMessage | undefined; pipe: Pipe<Output<TItem>[]> | undefined } - removed:
type ArraySchemaAsync<TItem extends BaseSchema | BaseSchemaAsync, TOutput = Output<TItem>[]> = BaseSchemaAsync<Input<TItem>[], TOutput> & { type: 'array'; item: TItem; message: ErrorMessage | undefined; pipe: PipeAsync<Output<TItem>[]> | undefined } - removed:
type BaseSchema<TInput = any, TOutput = TInput> = { expects: string; async: false; _parse(input: unknown, config?: SchemaConfig): SchemaResult<TOutput>; _types?: { input: TInput; output: TOutput } } - removed:
type BaseSchemaAsync<TInput = any, TOutput = TInput> = { expects: string; async: true; _parse(input: unknown, config?: SchemaConfig): Promise<SchemaResult<TOutput>>; _types?: { input: TInput; output: TOutput } } - removed:
type BaseTransformation<TInput = any> = { async: false; _parse(input: TInput): PipeActionResult<TInput> } - removed:
type BaseTransformationAsync<TInput = any> = { async: true; _parse(input: TInput): Promise<PipeActionResult<TInput>> } - removed:
type BaseValidation<TInput = any> = { expects: string | null; message: ErrorMessage | undefined; async: false; _parse(input: TInput): PipeActionResult<TInput> } - removed:
type BaseValidationAsync<TInput = any> = { expects: string | null; message: ErrorMessage | undefined; async: true; _parse(input: TInput): Promise<PipeActionResult<TInput>> } - removed:
type BicValidation<TInput extends string> = BaseValidation<TInput> & { type: 'bic'; requirement: RegExp } - removed:
type BigintSchema<TOutput = bigint> = BaseSchema<bigint, TOutput> & { type: 'bigint'; message: ErrorMessage | undefined; pipe: Pipe<bigint> | undefined } - removed:
type BigintSchemaAsync<TOutput = bigint> = BaseSchemaAsync<bigint, TOutput> & { type: 'bigint'; message: ErrorMessage | undefined; pipe: PipeAsync<bigint> | undefined } - removed:
type BlobSchema<TOutput = Blob> = BaseSchema<Blob, TOutput> & { type: 'blob'; message: ErrorMessage | undefined; pipe: Pipe<Blob> | undefined } - removed:
type BlobSchemaAsync<TOutput = Blob> = BaseSchemaAsync<Blob, TOutput> & { type: 'blob'; message: ErrorMessage | undefined; pipe: PipeAsync<Blob> | undefined } - removed:
type BooleanSchema<TOutput = boolean> = BaseSchema<boolean, TOutput> & { type: 'boolean'; message: ErrorMessage | undefined; pipe: Pipe<boolean> | undefined } - removed:
type BooleanSchemaAsync<TOutput = boolean> = BaseSchemaAsync<boolean, TOutput> & { type: 'boolean'; message: ErrorMessage | undefined; pipe: PipeAsync<boolean> | undefined } - removed:
type Brand<TName extends BrandName> = { [BrandSymbol]: { [TValue in TName]: TValue } } - removed:
type BytesValidation<TInput extends string, TRequirement extends number> = BaseValidation<TInput> & { type: 'bytes'; requirement: TRequirement } - removed:
type CreditCardValidation<TInput extends string> = BaseValidation<TInput> & { type: 'credit_card'; requirement: (input: TInput) => boolean } - removed:
type Cuid2Validation<TInput extends string> = BaseValidation<TInput> & { type: 'cuid2'; requirement: RegExp } - removed:
type CustomValidation<TInput> = BaseValidation<TInput> & { type: 'custom'; requirement: (input: TInput) => boolean } - removed:
type CustomValidationAsync<TInput> = BaseValidationAsync<TInput> & { type: 'custom'; requirement: (input: TInput) => Promise<boolean> } - removed:
type DateSchema<TOutput = Date> = BaseSchema<Date, TOutput> & { type: 'date'; message: ErrorMessage | undefined; pipe: Pipe<Date> | undefined } - removed:
type DateSchemaAsync<TOutput = Date> = BaseSchemaAsync<Date, TOutput> & { type: 'date'; message: ErrorMessage | undefined; pipe: PipeAsync<Date> | undefined } - removed:
type DecimalValidation<TInput extends string> = BaseValidation<TInput> & { type: 'decimal'; requirement: RegExp } - removed:
type EmailValidation<TInput extends string> = BaseValidation<TInput> & { type: 'email'; requirement: RegExp } - removed:
type EmojiValidation<TInput extends string> = BaseValidation<TInput> & { type: 'emoji'; requirement: RegExp } - removed:
type EndsWithValidation<TInput extends string, TRequirement extends string> = BaseValidation<TInput> & { type: 'ends_with'; requirement: TRequirement } - removed:
type Enum = { [key: string]: string | number; [key: number]: string } - removed:
type EnumSchema<TEnum extends Enum, TOutput = TEnum[keyof TEnum]> = BaseSchema<TEnum[keyof TEnum], TOutput> & { type: 'enum'; enum: TEnum; message: ErrorMessage | undefined } - removed:
type EnumSchemaAsync<TEnum extends Enum, TOutput = TEnum[keyof TEnum]> = BaseSchemaAsync<TEnum[keyof TEnum], TOutput> & { type: 'enum'; enum: TEnum; message: ErrorMessage | undefined } - removed:
type EqualValidation<TInput extends string | number | bigint | boolean, TRequirement extends TInput> = BaseValidation<TInput> & { type: 'equal'; requirement: TRequirement } - removed:
type EveryValidation<TInput extends any[]> = BaseValidation<TInput> & { type: 'every'; requirement: (element: TInput[number], index: number, array: TInput[number][]) => boolean } - removed:
type ExcludesValidation<TInput extends string | any[], TRequirement extends TInput extends any[] ? TInput[number] : TInput> = BaseValidation<TInput> & { type: 'excludes'; requirement: TRequirement } - removed:
type FallbackInfo = { input: unknown; issues: SchemaIssues } - removed:
type FiniteValidation<TInput extends number> = BaseValidation<TInput> & { type: 'finite'; requirement: (input: TInput) => boolean } - removed:
type FlatErrors<TSchema extends BaseSchema | BaseSchemaAsync = any> = { root?: [string, ...string[]]; nested: Partial<Record<NestedPath<TSchema>, [string, ...string[]]>> } - removed:
type HashValidation<TInput extends string> = BaseValidation<TInput> & { type: 'hash'; requirement: RegExp } - removed:
type HexColorValidation<TInput extends string> = BaseValidation<TInput> & { type: 'hex_color'; requirement: RegExp } - removed:
type HexadecimalValidation<TInput extends string> = BaseValidation<TInput> & { type: 'hexadecimal'; requirement: RegExp } - removed:
type ImeiValidation<TInput extends string> = BaseValidation<TInput> & { type: 'imei'; requirement: [RegExp, typeof isLuhnAlgo] } - removed:
type IncludesValidation<TInput extends string | any[], TRequirement extends TInput extends any[] ? TInput[number] : TInput> = BaseValidation<TInput> & { type: 'includes'; requirement: TRequirement } - removed:
type InstanceSchema<TClass extends Class, TOutput = InstanceType<TClass>> = BaseSchema<InstanceType<TClass>, TOutput> & { type: 'instance'; class: TClass; message: ErrorMessage | undefined; pipe: Pipe<InstanceType<TClass>> | undefined } - removed:
type InstanceSchemaAsync<TClass extends Class, TOutput = InstanceType<TClass>> = BaseSchemaAsync<InstanceType<TClass>, TOutput> & { type: 'instance'; class: TClass; message: ErrorMessage | undefined; pipe: PipeAsync<InstanceType<TClass>> |… - removed:
type IntegerValidation<TInput extends number> = BaseValidation<TInput> & { type: 'integer'; requirement: (input: TInput) => boolean } - removed:
type IntersectSchema<TOptions extends IntersectOptions, TOutput = IntersectOutput<TOptions>> = BaseSchema<IntersectInput<TOptions>, TOutput> & { type: 'intersect'; options: TOptions; message: ErrorMessage | undefined; pipe: Pipe<IntersectOutput<TOptions>… - removed:
type InvalidActionResult = { output?: undefined; issues: PipeActionIssues } - removed:
type IpValidation<TInput extends string> = BaseValidation<TInput> & { type: 'ip'; requirement: [RegExp, RegExp] } - removed:
type Ipv4Validation<TInput extends string> = BaseValidation<TInput> & { type: 'ipv4'; requirement: RegExp } - removed:
type Ipv6Validation<TInput extends string> = BaseValidation<TInput> & { type: 'ipv6'; requirement: RegExp } - removed:
type IsoDateTimeValidation<TInput extends string> = BaseValidation<TInput> & { type: 'iso_date_time'; requirement: RegExp } - removed:
type IsoDateValidation<TInput extends string> = BaseValidation<TInput> & { type: 'iso_date'; requirement: RegExp } - removed:
type IsoTimeSecondValidation<TInput extends string> = BaseValidation<TInput> & { type: 'iso_time_second'; requirement: RegExp } - removed:
type IsoTimeValidation<TInput extends string> = BaseValidation<TInput> & { type: 'iso_time'; requirement: RegExp } - removed:
type IsoTimestampValidation<TInput extends string> = BaseValidation<TInput> & { type: 'iso_timestamp'; requirement: RegExp } - removed:
type IsoWeekValidation<TInput extends string> = BaseValidation<TInput> & { type: 'iso_week'; requirement: RegExp } - removed:
type LazySchema<TGetter extends (input: unknown) => BaseSchema, TOutput = Output<ReturnType<TGetter>>> = BaseSchema<Input<ReturnType<TGetter>>, TOutput> & { type: 'lazy'; getter: TGetter } - removed:
type LazySchemaAsync<TGetter extends (input: unknown) => MaybePromise<BaseSchema | BaseSchemaAsync>, TOutput = Output<Awaited<ReturnType<TGetter>>>> = BaseSchemaAsync<Input<Awaited<ReturnType<TGetter>>>, TOutput> & { type: 'lazy'; getter: TGetter } - removed:
type LengthValidation<TInput extends string | any[], TRequirement extends number> = BaseValidation<TInput> & { type: 'length'; requirement: TRequirement } - removed:
type LiteralSchema<TLiteral extends Literal, TOutput = TLiteral> = BaseSchema<TLiteral, TOutput> & { type: 'literal'; literal: TLiteral; message: ErrorMessage | undefined } - removed:
type LiteralSchemaAsync<TLiteral extends Literal, TOutput = TLiteral> = BaseSchemaAsync<TLiteral, TOutput> & { type: 'literal'; literal: TLiteral; message: ErrorMessage | undefined } - removed:
type Mac48Validation<TInput extends string> = BaseValidation<TInput> & { type: 'mac48'; requirement: RegExp } - removed:
type Mac64Validation<TInput extends string> = BaseValidation<TInput> & { type: 'mac64'; requirement: RegExp } - removed:
type MacValidation<TInput extends string> = BaseValidation<TInput> & { type: 'mac'; requirement: [RegExp, RegExp] } - removed:
type MapPathItem = { type: 'map'; origin: 'key' | 'value'; input: Map<unknown, unknown>; key: unknown; value: unknown } - removed:
type MapSchema<TKey extends BaseSchema, TValue extends BaseSchema, TOutput = MapOutput<TKey, TValue>> = BaseSchema<MapInput<TKey, TValue>, TOutput> & { type: 'map'; key: TKey; value: TValue; message: ErrorMessage | undefined; pipe: Pipe<MapOutput<TKey, TValue>> |… - removed:
type MapSchemaAsync<TKey extends BaseSchema | BaseSchemaAsync, TValue extends BaseSchema | BaseSchemaAsync, TOutput = MapOutput<TKey, TValue>> = BaseSchemaAsync<MapInput<TKey, TValue>, TOutput> & { type: 'map'; key: TKey; value: TValue; message: ErrorMessage | undefined; pipe: PipeAsync<MapOutput<TKey,… - removed:
type MaxBytesValidation<TInput extends string, TRequirement extends number> = BaseValidation<TInput> & { type: 'max_bytes'; requirement: TRequirement } - removed:
type MaxLengthValidation<TInput extends string | any[], TRequirement extends number> = BaseValidation<TInput> & { type: 'max_length'; requirement: TRequirement } - removed:
type MaxSizeValidation<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number> = BaseValidation<TInput> & { type: 'max_size'; requirement: TRequirement } - removed:
type MaxValueValidation<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput> = BaseValidation<TInput> & { type: 'max_value'; requirement: TRequirement } - removed:
type MimeTypeValidation<TInput extends Blob, TRequirement extends `${string}/${string}`[]> = BaseValidation<TInput> & { type: 'mime_type'; requirement: TRequirement } - removed:
type MinBytesValidation<TInput extends string, TRequirement extends number> = BaseValidation<TInput> & { type: 'min_bytes'; requirement: TRequirement } - removed:
type MinLengthValidation<TInput extends string | any[], TRequirement extends number> = BaseValidation<TInput> & { type: 'min_length'; requirement: TRequirement } - removed:
type MinSizeValidation<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number> = BaseValidation<TInput> & { type: 'min_size'; requirement: TRequirement } - removed:
type MinValueValidation<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput> = BaseValidation<TInput> & { type: 'min_value'; requirement: TRequirement } - removed:
type MultipleOfValidation<TInput extends number, TRequirement extends number> = BaseValidation<TInput> & { type: 'multiple_of'; requirement: TRequirement } - removed:
type NanSchema<TOutput = number> = BaseSchema<number, TOutput> & { type: 'nan'; message: ErrorMessage | undefined } - removed:
type NanSchemaAsync<TOutput = number> = BaseSchemaAsync<number, TOutput> & { type: 'nan'; message: ErrorMessage | undefined } - removed:
type NeverSchema = BaseSchema<never> & { type: 'never'; message: ErrorMessage | undefined } - removed:
type NeverSchemaAsync = BaseSchemaAsync<never> & { type: 'never'; message: ErrorMessage | undefined } - removed:
type NonNullableSchema<TWrapped extends BaseSchema, TOutput = NonNullableOutput<TWrapped>> = BaseSchema<NonNullableInput<TWrapped>, TOutput> & { type: 'non_nullable'; wrapped: TWrapped; message: ErrorMessage | undefined } - removed:
type NonNullableSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonNullableOutput<TWrapped>> = BaseSchemaAsync<NonNullableInput<TWrapped>, TOutput> & { type: 'non_nullable'; wrapped: TWrapped; message: ErrorMessage | undefined } - removed:
type NonNullishSchema<TWrapped extends BaseSchema, TOutput = NonNullishOutput<TWrapped>> = BaseSchema<NonNullishInput<TWrapped>, TOutput> & { type: 'non_nullish'; wrapped: TWrapped; message: ErrorMessage | undefined } - removed:
type NonNullishSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonNullishOutput<TWrapped>> = BaseSchemaAsync<NonNullishInput<TWrapped>, TOutput> & { type: 'non_nullish'; wrapped: TWrapped; message: ErrorMessage | undefined } - removed:
type NonOptionalSchema<TWrapped extends BaseSchema, TOutput = NonOptionalOutput<TWrapped>> = BaseSchema<NonOptionalInput<TWrapped>, TOutput> & { type: 'non_optional'; wrapped: TWrapped; message: ErrorMessage | undefined } - removed:
type NonOptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonOptionalOutput<TWrapped>> = BaseSchemaAsync<NonOptionalInput<TWrapped>, TOutput> & { type: 'non_optional'; wrapped: TWrapped; message: ErrorMessage | undefined } - removed:
type NotBytesValidation<TInput extends string, TRequirement extends number> = BaseValidation<TInput> & { type: 'not_bytes'; requirement: TRequirement } - removed:
type NotLengthValidation<TInput extends string | any[], TRequirement extends number> = BaseValidation<TInput> & { type: 'not_length'; requirement: TRequirement } - removed:
type NotSizeValidation<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number> = BaseValidation<TInput> & { type: 'not_size'; requirement: TRequirement } - removed:
type NotValueValidation<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput> = BaseValidation<TInput> & { type: 'not_value'; requirement: TRequirement } - removed:
type NullSchema<TOutput = null> = BaseSchema<null, TOutput> & { type: 'null'; message: ErrorMessage | undefined } - removed:
type NullSchemaAsync<TOutput = null> = BaseSchemaAsync<null, TOutput> & { type: 'null'; message: ErrorMessage | undefined } - removed:
type NullableSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped>) ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchema<Input<TWrapped> | null, TOutput> & { type: 'nullable'; wrapped: TWrapped; default: TDefault } - removed:
type NullableSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped>>) ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchemaAsync<Input<TWrapped> | null, TOutput> & { type: 'nullable'; wrapped: TWrapped; default: TDefault } - removed:
type NullishSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped>) ? Output<TWrapped> : Output<TWrapped> | null | undefined> = BaseSchema<Input<TWrapped> | null | undefined, TOutput> & { type: 'nullish'; wrapped: TWrapped; default: TDefault } - removed:
type NullishSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped>>) ? Output<TWrapped> : Output<TWrapped> | null | undefined> = BaseSchemaAsync<Input<TWrapped> | null | undefined, TOutput> & { type: 'nullish'; wrapped: TWrapped; default: TDefault } - removed:
type NumberSchema<TOutput = number> = BaseSchema<number, TOutput> & { type: 'number'; message: ErrorMessage | undefined; pipe: Pipe<number> | undefined } - removed:
type NumberSchemaAsync<TOutput = number> = BaseSchemaAsync<number, TOutput> & { type: 'number'; message: ErrorMessage | undefined; pipe: PipeAsync<number> | undefined } - removed:
type ObjectEntries = Record<string, BaseSchema> - removed:
type ObjectEntriesAsync = Record<string, BaseSchema | BaseSchemaAsync> - removed:
type ObjectPathItem = { type: 'object'; origin: 'value'; input: Record<string, unknown>; key: string; value: unknown } - removed:
type ObjectSchema<TEntries extends ObjectEntries, TRest extends BaseSchema | undefined = undefined, TOutput = ObjectOutput<TEntries, TRest>> = BaseSchema<ObjectInput<TEntries, TRest>, TOutput> & { type: 'object'; entries: TEntries; rest: TRest; message: ErrorMessage | undefined; pipe: Pipe<ObjectOutpu… - removed:
type ObjectSchemaAsync<TEntries extends ObjectEntriesAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined = undefined, TOutput = ObjectOutput<TEntries, TRest>> = BaseSchemaAsync<ObjectInput<TEntries, TRest>, TOutput> & { type: 'object'; entries: TEntries; rest: TRest; message: ErrorMessage | undefined; pipe: PipeAsync<O… - removed:
type OctalValidation<TInput extends string> = BaseValidation<TInput> & { type: 'octal'; requirement: RegExp } - removed:
type OptionalSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped>) ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchema<Input<TWrapped> | undefined, TOutput> & { type: 'optional'; wrapped: TWrapped; default: TDefault } - removed:
type OptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped>>) ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchemaAsync<Input<TWrapped> | undefined, TOutput> & { type: 'optional'; wrapped: TWrapped; default: TDefault } - removed:
type PicklistSchema<TOptions extends PicklistOptions, TOutput = TOptions[number]> = BaseSchema<TOptions[number], TOutput> & { type: 'picklist'; options: TOptions; message: ErrorMessage | undefined } - removed:
type PicklistSchemaAsync<TOptions extends PicklistOptions, TOutput = TOptions[number]> = BaseSchemaAsync<TOptions[number], TOutput> & { type: 'picklist'; options: TOptions; message: ErrorMessage | undefined } - removed:
type PipeActionContext = { type: string; expects: string | null; message: ErrorMessage | undefined; requirement: unknown } - removed:
type PipeActionIssue = { context: PipeActionContext; reference: Function; input: unknown; label: string; received?: string; path?: IssuePath } - removed:
type RecordPathItem = { type: 'record'; origin: 'key' | 'value'; input: Record<string | number | symbol, unknown>; key: string | number | symbol; value: unknown } - removed:
type RecordSchema<TKey extends RecordKey, TValue extends BaseSchema, TOutput = RecordOutput<TKey, TValue>> = BaseSchema<RecordInput<TKey, TValue>, TOutput> & { type: 'record'; key: TKey; value: TValue; message: ErrorMessage | undefined; pipe: Pipe<RecordOutput<TKey, T… - removed:
type RecordSchemaAsync<TKey extends RecordKeyAsync, TValue extends BaseSchema | BaseSchemaAsync, TOutput = RecordOutput<TKey, TValue>> = BaseSchemaAsync<RecordInput<TKey, TValue>, TOutput> & { type: 'record'; key: TKey; value: TValue; message: ErrorMessage | undefined; pipe: PipeAsync<RecordOutp… - removed:
type RegexValidation<TInput extends string> = BaseValidation<TInput> & { type: 'regex'; requirement: RegExp } - removed:
type SafeIntegerValidation<TInput extends number> = BaseValidation<TInput> & { type: 'safe_integer'; requirement: (input: TInput) => boolean } - removed:
type SchemaConfig = { lang?: string; message?: ErrorMessage; abortEarly?: boolean; abortPipeEarly?: boolean; skipPipe?: boolean } - removed:
type SchemaIssue = Omit<SchemaConfig, 'message'> & { reason: IssueReason; context: string; input: unknown; expected: string | null; received: string; message: string; requirement… - removed:
type SetPathItem = { type: 'set'; origin: 'value'; input: Set<unknown>; key: number; value: unknown } - removed:
type SetSchema<TValue extends BaseSchema, TOutput = SetOutput<TValue>> = BaseSchema<SetInput<TValue>, TOutput> & { type: 'set'; value: TValue; message: ErrorMessage | undefined; pipe: Pipe<SetOutput<TValue>> | undefined } - removed:
type SetSchemaAsync<TValue extends BaseSchema | BaseSchemaAsync, TOutput = SetOutput<TValue>> = BaseSchemaAsync<SetInput<TValue>, TOutput> & { type: 'set'; value: TValue; message: ErrorMessage | undefined; pipe: PipeAsync<SetOutput<TValue>> | undefined } - removed:
type SizeValidation<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number> = BaseValidation<TInput> & { type: 'size'; requirement: TRequirement } - removed:
type SomeValidation<TInput extends any[]> = BaseValidation<TInput> & { type: 'some'; requirement: (element: TInput[number], index: number, array: TInput[number][]) => boolean } - removed:
type SpecialSchema<TInput, TOutput = TInput> = BaseSchema<TInput, TOutput> & { type: 'special'; check: (input: unknown) => boolean; message: ErrorMessage | undefined; pipe: Pipe<TInput> | undefined } - removed:
type SpecialSchemaAsync<TInput, TOutput = TInput> = BaseSchemaAsync<TInput, TOutput> & { type: 'special'; check: (input: unknown) => boolean | Promise<boolean>; message: ErrorMessage | undefined; pipe: PipeAsync… - removed:
type StartsWithValidation<TInput extends string, TRequirement extends string> = BaseValidation<TInput> & { type: 'starts_with'; requirement: TRequirement } - removed:
type StringSchema<TOutput = string> = BaseSchema<string, TOutput> & { type: 'string'; message: ErrorMessage | undefined; pipe: Pipe<string> | undefined } - removed:
type StringSchemaAsync<TOutput = string> = BaseSchemaAsync<string, TOutput> & { type: 'string'; message: ErrorMessage | undefined; pipe: PipeAsync<string> | undefined } - removed:
type SymbolSchema<TOutput = symbol> = BaseSchema<symbol, TOutput> & { type: 'symbol'; message: ErrorMessage | undefined } - removed:
type SymbolSchemaAsync<TOutput = symbol> = BaseSchemaAsync<symbol, TOutput> & { type: 'symbol'; message: ErrorMessage | undefined } - removed:
type ToCustomTransformation<TInput> = BaseTransformation<TInput> & { type: 'to_custom' } - removed:
type ToCustomTransformationAsync<TInput> = BaseTransformationAsync<TInput> & { type: 'to_custom' } - removed:
type ToLowerCaseTransformation = BaseTransformation<string> & { type: 'to_lower_case' } - removed:
type ToMaxValueTransformation<TInput extends string | number | bigint | Date, TRequirement extends TInput> = BaseTransformation<TInput> & { type: 'to_max_value'; requirement: TRequirement } - removed:
type ToMinValueTransformation<TInput extends string | number | bigint | Date, TRequirement extends TInput> = BaseTransformation<TInput> & { type: 'to_min_value'; requirement: TRequirement } - removed:
type ToTrimmedEndTransformation = BaseTransformation<string> & { type: 'to_trimmed_end' } - removed:
type ToTrimmedStartTransformation = BaseTransformation<string> & { type: 'to_trimmed_start' } - removed:
type ToTrimmedTransformation = BaseTransformation<string> & { type: 'to_trimmed' } - removed:
type ToUpperCaseTransformation = BaseTransformation<string> & { type: 'to_upper_case' } - removed:
type TuplePathItem = { type: 'tuple'; origin: 'value'; input: [unknown, ...unknown[]]; key: number; value: unknown } - removed:
type TupleSchema<TItems extends TupleItems, TRest extends BaseSchema | undefined = undefined, TOutput = TupleOutput<TItems, TRest>> = BaseSchema<TupleInput<TItems, TRest>, TOutput> & { type: 'tuple'; items: TItems; rest: TRest; message: ErrorMessage | undefined; pipe: Pipe<TupleOutput<TItems,… - removed:
type TupleSchemaAsync<TItems extends TupleItemsAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined = undefined, TOutput = TupleOutput<TItems, TRest>> = BaseSchemaAsync<TupleInput<TItems, TRest>, TOutput> & { type: 'tuple'; items: TItems; rest: TRest; message: ErrorMessage | undefined; pipe: PipeAsync<TupleOutp… - removed:
type TypedSchemaResult<TOutput> = { typed: true; output: TOutput; issues?: SchemaIssues } - removed:
type UlidValidation<TInput extends string> = BaseValidation<TInput> & { type: 'ulid'; requirement: RegExp } - removed:
type UndefinedSchema<TOutput = undefined> = BaseSchema<undefined, TOutput> & { type: 'undefined'; message: ErrorMessage | undefined } - removed:
type UndefinedSchemaAsync<TOutput = undefined> = BaseSchemaAsync<undefined, TOutput> & { type: 'undefined'; message: ErrorMessage | undefined } - removed:
type UnionSchema<TOptions extends UnionOptions, TOutput = Output<TOptions[number]>> = BaseSchema<Input<TOptions[number]>, TOutput> & { type: 'union'; options: TOptions; message: ErrorMessage | undefined; pipe: Pipe<Output<TOptions[number]>> | un… - removed:
type UnionSchemaAsync<TOptions extends UnionOptionsAsync, TOutput = Output<TOptions[number]>> = BaseSchemaAsync<Input<TOptions[number]>, TOutput> & { type: 'union'; options: TOptions; message: ErrorMessage | undefined; pipe: PipeAsync<Input<TOptions[numbe… - removed:
type UnknownPathItem = { type: 'unknown'; origin: 'key' | 'value'; input: unknown; key: unknown; value: unknown } - removed:
type UnknownSchema<TOutput = unknown> = BaseSchema<unknown, TOutput> & { type: 'unknown'; pipe: Pipe<unknown> | undefined } - removed:
type UnknownSchemaAsync<TOutput = unknown> = BaseSchemaAsync<unknown, TOutput> & { type: 'unknown'; pipe: PipeAsync<unknown> | undefined } - removed:
type UntypedSchemaResult = { typed: false; output: unknown; issues: SchemaIssues } - removed:
type UrlValidation<TInput extends string> = BaseValidation<TInput> & { type: 'url'; requirement: (input: TInput) => boolean } - removed:
type UuidValidation<TInput extends string> = BaseValidation<TInput> & { type: 'uuid'; requirement: RegExp } - removed:
type ValidActionResult<TOutput> = { output: TOutput; issues?: undefined } - removed:
type ValueValidation<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput> = BaseValidation<TInput> & { type: 'value'; requirement: TRequirement } - removed:
type VariantSchema<TKey extends string, TOptions extends VariantOptions<TKey>, TOutput = Output<TOptions[number]>> = BaseSchema<Input<TOptions[number]>, TOutput> & { type: 'variant'; key: TKey; options: TOptions; message: ErrorMessage | undefined; pipe: Pipe<Output<TOptions[n… - removed:
type VariantSchemaAsync<TKey extends string, TOptions extends VariantOptionsAsync<TKey>, TOutput = Output<TOptions[number]>> = BaseSchemaAsync<Input<TOptions[number]>, TOutput> & { type: 'variant'; key: TKey; options: TOptions; message: ErrorMessage | undefined; pipe: PipeAsync<Input<T… - removed:
type VoidSchema<TOutput = void> = BaseSchema<void, TOutput> & { type: 'void'; message: ErrorMessage | undefined } - removed:
type VoidSchemaAsync<TOutput = void> = BaseSchemaAsync<void, TOutput> & { type: 'void'; message: ErrorMessage | undefined } - changed:
function fallback<TSchema extends BaseSchema, const TFallback extends Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema>)>(schema: TSchema, fallback: TFallback): SchemaWithFallback<TSchema, TFallback> → function fallback<TSchema extends BaseSchema, const TFallback extends Fallback<TSchema>>(schema: TSchema, fallback: TFallback): SchemaWithFallback<TSchema, TFallback> - changed:
function fallbackAsync<TSchema extends BaseSchemaAsync, const TFallback extends Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema> | Promise<Output<TSchema>>)>(schema: TSchema, fallback: TFallback): SchemaWithFallbackAsync<TSchema, TFallback> → function fallbackAsync<TSchema extends BaseSchemaAsync, const TFallback extends FallbackAsync<TSchema>>(schema: TSchema, fallback: TFallback): SchemaWithFallbackAsync<TSchema, TFallback> - changed:
function getDefaults<TSchema extends SchemaWithMaybeDefault<BaseSchema | ObjectSchema<ObjectEntries, any> | TupleSchema<TupleItems, any>>>(schema: TSchema): DefaultValues<TSchema> → function getDefaults<TSchema extends SchemaWithMaybeDefault<BaseSchema | ObjectSchema<ObjectEntries, any> | TupleSchema<TupleItems, any>>>(schema: TSchema): DefaultValues<TSchema> | undefined - changed:
function getDefaultsAsync<TSchema extends SchemaWithMaybeDefault<BaseSchema | ObjectSchema<ObjectEntries, any> | TupleSchema<TupleItems, any>> | SchemaWithMaybeDefaultAsync<BaseSchemaAsync | ObjectSchemaAsync<ObjectEntriesAsync, any> | TupleSchemaAsync<TupleItemsAsync, any>>>(schema: TSchema): Promise<DefaultValues<TSchema>> → function getDefaultsAsync<TSchema extends SchemaWithMaybeDefault<BaseSchema | ObjectSchema<ObjectEntries, any> | TupleSchema<TupleItems, any>> | SchemaWithMaybeDefaultAsync<BaseSchemaAsync | ObjectSchemaAsync<ObjectEntriesAsync, any> | TupleSchemaAsync<TupleItemsAsync, any>>>(schema: TSchema): Promise<DefaultValues<TSchema> | undefined> - changed:
function getFallbacks<TSchema extends SchemaWithMaybeFallback<BaseSchema | ObjectSchema<ObjectEntries, any> | TupleSchema<TupleItems, any>>>(schema: TSchema): FallbackValues<TSchema> → function getFallbacks<TSchema extends SchemaWithMaybeFallback<BaseSchema | ObjectSchema<ObjectEntries, any> | TupleSchema<TupleItems, any>>>(schema: TSchema): FallbackValues<TSchema> | undefined - changed:
function getFallbacksAsync<TSchema extends SchemaWithMaybeFallback<BaseSchema | ObjectSchema<ObjectEntries, any> | TupleSchema<TupleItems, any>> | SchemaWithMaybeFallbackAsync<BaseSchemaAsync | ObjectSchemaAsync<ObjectEntriesAsync, any> | TupleSchemaAsync<TupleItemsAsync, any>>>(schema: TSchema): Promise<FallbackValues<TSchema>> → function getFallbacksAsync<TSchema extends SchemaWithMaybeFallback<BaseSchema | ObjectSchema<ObjectEntries, any> | TupleSchema<TupleItems, any>> | SchemaWithMaybeFallbackAsync<BaseSchemaAsync | ObjectSchemaAsync<ObjectEntriesAsync, any> | TupleSchemaAsync<TupleItemsAsync, any>>>(schema: TSchema): Promise<FallbackValues<TSchema> | undefined> - changed:
function nullable<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined>(wrapped: TWrapped, default_: TDefault): NullableSchema<TWrapped, TDefault> → function nullable<TWrapped extends BaseSchema, TDefault extends Default<TWrapped>>(wrapped: TWrapped, default_: TDefault): NullableSchema<TWrapped, TDefault> - changed:
function nullableAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined>(wrapped: TWrapped, default_: TDefault): NullableSchemaAsync<TWrapped, TDefault> → function nullableAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends DefaultAsync<TWrapped>>(wrapped: TWrapped, default_: TDefault): NullableSchemaAsync<TWrapped, TDefault> - changed:
function nullish<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined>(wrapped: TWrapped, default_: TDefault): NullishSchema<TWrapped, TDefault> → function nullish<TWrapped extends BaseSchema, TDefault extends Default<TWrapped>>(wrapped: TWrapped, default_: TDefault): NullishSchema<TWrapped, TDefault> - changed:
function nullishAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined>(wrapped: TWrapped, default_: TDefault): NullishSchemaAsync<TWrapped, TDefault> → function nullishAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends DefaultAsync<TWrapped>>(wrapped: TWrapped, default_: TDefault): NullishSchemaAsync<TWrapped, TDefault> - changed:
function optional<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined>(wrapped: TWrapped, default_: TDefault): OptionalSchema<TWrapped, TDefault> → function optional<TWrapped extends BaseSchema, TDefault extends Default<TWrapped>>(wrapped: TWrapped, default_: TDefault): OptionalSchema<TWrapped, TDefault> - changed:
function optionalAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined>(wrapped: TWrapped, default_: TDefault): OptionalSchemaAsync<TWrapped, TDefault> → function optionalAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends DefaultAsync<TWrapped>>(wrapped: TWrapped, default_: TDefault): OptionalSchemaAsync<TWrapped, TDefault> - changed:
type DefaultValue<TSchema extends SchemaWithMaybeDefault | SchemaWithMaybeDefaultAsync> = TSchema['default'] extends Output<TSchema> | undefined ? TSchema['default'] : TSchema['default'] extends () => Output<TSchema> | undefined ? ReturnType<TSchema… → type DefaultValue<TSchema extends SchemaWithMaybeDefault | SchemaWithMaybeDefaultAsync> = TSchema['default'] extends Input<TSchema> | undefined ? TSchema['default'] : TSchema['default'] extends () => Input<TSchema> | undefined ? ReturnType<TSchema['… - changed:
type SafeParseResult<TSchema extends BaseSchema | BaseSchemaAsync> = { typed: true; success: true; data: Output<TSchema>; output: Output<TSchema>; error: undefined; issues: undefined } | { typed: true; success: false; data: Outp… → type SafeParseResult<TSchema extends BaseSchema | BaseSchemaAsync> = { typed: true; success: true; output: Output<TSchema>; issues: undefined } | { typed: true; success: false; output: Output<TSchema>; issues: SchemaIssues } | {… - changed:
type SchemaWithFallback<TSchema extends BaseSchema = BaseSchema, TFallback extends Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema>) = Output<TSchema>> = TSchema & { fallback: TFallback } → type SchemaWithFallback<TSchema extends BaseSchema = BaseSchema, TFallback extends Fallback<TSchema> = Fallback<TSchema>> = TSchema & { fallback: TFallback } - changed:
type SchemaWithFallbackAsync<TSchema extends BaseSchemaAsync = BaseSchemaAsync, TFallback extends Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema> | Promise<Output<TSchema>>) = Output<TSchema>> = TSchema & { fallback: TFallback } → type SchemaWithFallbackAsync<TSchema extends BaseSchemaAsync = BaseSchemaAsync, TFallback extends FallbackAsync<TSchema> = FallbackAsync<TSchema>> = TSchema & { fallback: TFallback } - changed:
type SchemaWithMaybeDefault<TSchema extends BaseSchema = BaseSchema> = TSchema & { default?: Output<TSchema> | (() => Output<TSchema> | undefined) } → type SchemaWithMaybeDefault<TSchema extends BaseSchema = BaseSchema, TDefault extends Default<TSchema> = Default<TSchema>> = TSchema & { default?: TDefault } - changed:
type SchemaWithMaybeDefaultAsync<TSchema extends BaseSchemaAsync = BaseSchemaAsync> = TSchema & { default?: Output<TSchema> | (() => Output<TSchema> | Promise<Output<TSchema> | undefined> | undefined) } → type SchemaWithMaybeDefaultAsync<TSchema extends BaseSchemaAsync = BaseSchemaAsync, TDefault extends DefaultAsync<TSchema> = DefaultAsync<TSchema>> = TSchema & { default?: TDefault } - changed:
type SchemaWithMaybeFallback<TSchema extends BaseSchema = BaseSchema> = TSchema & { fallback?: Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema>) } → type SchemaWithMaybeFallback<TSchema extends BaseSchema = BaseSchema, TFallback extends Fallback<TSchema> = Fallback<TSchema>> = TSchema & { fallback?: TFallback } - changed:
type SchemaWithMaybeFallbackAsync<TSchema extends BaseSchemaAsync = BaseSchemaAsync> = TSchema & { fallback?: Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema> | Promise<Output<TSchema>>) } → type SchemaWithMaybeFallbackAsync<TSchema extends BaseSchemaAsync = BaseSchemaAsync, TFallback extends FallbackAsync<TSchema> = FallbackAsync<TSchema>> = TSchema & { fallback?: TFallback } - changed:
type VariantOption<TKey extends string> = ObjectSchema<Record<TKey, BaseSchema>, any> | (BaseSchema & { type: 'variant'; options: VariantOptions<TKey> }) → type VariantOption<TKey extends string> = ObjectSchema<Record<TKey, BaseSchema>, any> | VariantOptionSchema$1<TKey> - changed:
type VariantOptionAsync<TKey extends string> = ObjectSchema<Record<TKey, BaseSchema>, any> | ObjectSchemaAsync<Record<TKey, BaseSchema | BaseSchemaAsync>, any> | ((BaseSchema | BaseSchemaAsync) & { type: 'v… → type VariantOptionAsync<TKey extends string> = ObjectSchema<Record<TKey, BaseSchema>, any> | ObjectSchemaAsync<Record<TKey, BaseSchema | BaseSchemaAsync>, any> | VariantOptionSchema<TKey> | VariantOptionSch… - added:
function intersectAsync<TOptions extends IntersectOptionsAsync>(options: TOptions, message?: ErrorMessage, pipe?: PipeAsync<IntersectInput<TOptions>>): IntersectSchemaAsync<TOptions> - added:
function intersectAsync<TOptions extends IntersectOptionsAsync>(options: TOptions, pipe?: PipeAsync<IntersectInput<TOptions>>): IntersectSchemaAsync<TOptions> - added:
function isOfType<TType extends string, TObject extends { type: string }>(type: TType, object: TObject): object is Extract<TObject, { type: TType }> - added:
index Enum[key: number]: string - added:
index Enum[key: string]: string | number - added:
index ObjectEntriesAsync[key: string]: BaseSchema | BaseSchemaAsync - added:
index ObjectEntries[key: string]: BaseSchema - added:
interface AnySchema<TOutput = any> extends BaseSchema<any, TOutput> - added:
interface AnySchemaAsync<TOutput = any> extends BaseSchemaAsync<any, TOutput> - added:
interface ArrayPathItem - added:
interface ArraySchema<TItem extends BaseSchema, TOutput = Output<TItem>[]> extends BaseSchema<Input<TItem>[], TOutput> - added:
interface ArraySchemaAsync<TItem extends BaseSchema | BaseSchemaAsync, TOutput = Output<TItem>[]> extends BaseSchemaAsync<Input<TItem>[], TOutput> - added:
interface BaseSchema<TInput = any, TOutput = TInput> - added:
interface BaseSchemaAsync<TInput = any, TOutput = TInput> - added:
interface BaseTransformation<TInput = any> - added:
interface BaseTransformationAsync<TInput = any> - added:
interface BaseValidation<TInput = any> - added:
interface BaseValidationAsync<TInput = any> - added:
interface BicValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface BigintSchema<TOutput = bigint> extends BaseSchema<bigint, TOutput> - added:
interface BigintSchemaAsync<TOutput = bigint> extends BaseSchemaAsync<bigint, TOutput> - added:
interface BlobSchema<TOutput = Blob> extends BaseSchema<Blob, TOutput> - added:
interface BlobSchemaAsync<TOutput = Blob> extends BaseSchemaAsync<Blob, TOutput> - added:
interface BooleanSchema<TOutput = boolean> extends BaseSchema<boolean, TOutput> - added:
interface BooleanSchemaAsync<TOutput = boolean> extends BaseSchemaAsync<boolean, TOutput> - added:
interface Brand<TName extends BrandName> - added:
interface BytesValidation<TInput extends string, TRequirement extends number> extends BaseValidation<TInput> - added:
interface CreditCardValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface Cuid2Validation<TInput extends string> extends BaseValidation<TInput> - added:
interface CustomValidation<TInput> extends BaseValidation<TInput> - added:
interface CustomValidationAsync<TInput> extends BaseValidationAsync<TInput> - added:
interface DateSchema<TOutput = Date> extends BaseSchema<Date, TOutput> - added:
interface DateSchemaAsync<TOutput = Date> extends BaseSchemaAsync<Date, TOutput> - added:
interface DecimalValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface EmailValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface EmojiValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface EndsWithValidation<TInput extends string, TRequirement extends string> extends BaseValidation<TInput> - added:
interface Enum - added:
interface EnumSchema<TEnum extends Enum, TOutput = TEnum[keyof TEnum]> extends BaseSchema<TEnum[keyof TEnum], TOutput> - added:
interface EnumSchemaAsync<TEnum extends Enum, TOutput = TEnum[keyof TEnum]> extends BaseSchemaAsync<TEnum[keyof TEnum], TOutput> - added:
interface EveryValidation<TInput extends any[]> extends BaseValidation<TInput> - added:
interface ExcludesValidation<TInput extends string | any[], TRequirement extends TInput extends any[] ? TInput[number] : TInput> extends BaseValidation<TInput> - added:
interface FallbackInfo - added:
interface FiniteValidation<TInput extends number> extends BaseValidation<TInput> - added:
interface FlatErrors<TSchema extends BaseSchema | BaseSchemaAsync = any> - added:
interface HashValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface HexColorValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface HexadecimalValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface ImeiValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface IncludesValidation<TInput extends string | any[], TRequirement extends TInput extends any[] ? TInput[number] : TInput> extends BaseValidation<TInput> - added:
interface InstanceSchema<TClass extends Class, TOutput = InstanceType<TClass>> extends BaseSchema<InstanceType<TClass>, TOutput> - added:
interface InstanceSchemaAsync<TClass extends Class, TOutput = InstanceType<TClass>> extends BaseSchemaAsync<InstanceType<TClass>, TOutput> - added:
interface IntegerValidation<TInput extends number> extends BaseValidation<TInput> - added:
interface IntersectSchema<TOptions extends IntersectOptions, TOutput = IntersectOutput<TOptions>> extends BaseSchema<IntersectInput<TOptions>, TOutput> - added:
interface IntersectSchemaAsync<TOptions extends IntersectOptionsAsync, TOutput = IntersectOutput<TOptions>> extends BaseSchemaAsync<IntersectInput<TOptions>, TOutput> - added:
interface InvalidActionResult - added:
interface IpValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface Ipv4Validation<TInput extends string> extends BaseValidation<TInput> - added:
interface Ipv6Validation<TInput extends string> extends BaseValidation<TInput> - added:
interface IsoDateTimeValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface IsoDateValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface IsoTimeSecondValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface IsoTimeValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface IsoTimestampValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface IsoWeekValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface LazySchema<TGetter extends (input: unknown) => BaseSchema, TOutput = Output<ReturnType<TGetter>>> extends BaseSchema<Input<ReturnType<TGetter>>, TOutput> - added:
interface LazySchemaAsync<TGetter extends (input: unknown) => MaybePromise<BaseSchema | BaseSchemaAsync>, TOutput = Output<Awaited<ReturnType<TGetter>>>> extends BaseSchemaAsync<Input<Awaited<ReturnType<TGetter>>>, TOutput> - added:
interface LengthValidation<TInput extends string | any[], TRequirement extends number> extends BaseValidation<TInput> - added:
interface LiteralSchema<TLiteral extends Literal, TOutput = TLiteral> extends BaseSchema<TLiteral, TOutput> - added:
interface LiteralSchemaAsync<TLiteral extends Literal, TOutput = TLiteral> extends BaseSchemaAsync<TLiteral, TOutput> - added:
interface Mac48Validation<TInput extends string> extends BaseValidation<TInput> - added:
interface Mac64Validation<TInput extends string> extends BaseValidation<TInput> - added:
interface MacValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface MapPathItem - added:
interface MapSchema<TKey extends BaseSchema, TValue extends BaseSchema, TOutput = MapOutput<TKey, TValue>> extends BaseSchema<MapInput<TKey, TValue>, TOutput> - added:
interface MapSchemaAsync<TKey extends BaseSchema | BaseSchemaAsync, TValue extends BaseSchema | BaseSchemaAsync, TOutput = MapOutput<TKey, TValue>> extends BaseSchemaAsync<MapInput<TKey, TValue>, TOutput> - added:
interface MaxBytesValidation<TInput extends string, TRequirement extends number> extends BaseValidation<TInput> - added:
interface MaxLengthValidation<TInput extends string | any[], TRequirement extends number> extends BaseValidation<TInput> - added:
interface MaxSizeValidation<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number> extends BaseValidation<TInput> - added:
interface MaxValueValidation<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput> extends BaseValidation<TInput> - added:
interface MimeTypeValidation<TInput extends Blob, TRequirement extends `${string}/${string}`[]> extends BaseValidation<TInput> - added:
interface MinBytesValidation<TInput extends string, TRequirement extends number> extends BaseValidation<TInput> - added:
interface MinLengthValidation<TInput extends string | any[], TRequirement extends number> extends BaseValidation<TInput> - added:
interface MinSizeValidation<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number> extends BaseValidation<TInput> - added:
interface MinValueValidation<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput> extends BaseValidation<TInput> - added:
interface MultipleOfValidation<TInput extends number, TRequirement extends number> extends BaseValidation<TInput> - added:
interface NanSchema<TOutput = number> extends BaseSchema<number, TOutput> - added:
interface NanSchemaAsync<TOutput = number> extends BaseSchemaAsync<number, TOutput> - added:
interface NeverSchema extends BaseSchema<never> - added:
interface NeverSchemaAsync extends BaseSchemaAsync<never> - added:
interface NonNullableSchema<TWrapped extends BaseSchema, TOutput = NonNullableOutput<TWrapped>> extends BaseSchema<NonNullableInput<TWrapped>, TOutput> - added:
interface NonNullableSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonNullableOutput<TWrapped>> extends BaseSchemaAsync<NonNullableInput<TWrapped>, TOutput> - added:
interface NonNullishSchema<TWrapped extends BaseSchema, TOutput = NonNullishOutput<TWrapped>> extends BaseSchema<NonNullishInput<TWrapped>, TOutput> - added:
interface NonNullishSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonNullishOutput<TWrapped>> extends BaseSchemaAsync<NonNullishInput<TWrapped>, TOutput> - added:
interface NonOptionalSchema<TWrapped extends BaseSchema, TOutput = NonOptionalOutput<TWrapped>> extends BaseSchema<NonOptionalInput<TWrapped>, TOutput> - added:
interface NonOptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonOptionalOutput<TWrapped>> extends BaseSchemaAsync<NonOptionalInput<TWrapped>, TOutput> - added:
interface NotBytesValidation<TInput extends string, TRequirement extends number> extends BaseValidation<TInput> - added:
interface NotLengthValidation<TInput extends string | any[], TRequirement extends number> extends BaseValidation<TInput> - added:
interface NotSizeValidation<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number> extends BaseValidation<TInput> - added:
interface NotValueValidation<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput> extends BaseValidation<TInput> - added:
interface NullSchema<TOutput = null> extends BaseSchema<null, TOutput> - added:
interface NullSchemaAsync<TOutput = null> extends BaseSchemaAsync<null, TOutput> - added:
interface NullableSchema<TWrapped extends BaseSchema, TDefault extends Default<TWrapped> = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped>) ? Output<TWrapped> : Output<TWrapped> | null> extends BaseSchema<Input<TWrapped> | null, TOutput> - added:
interface NullableSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends DefaultAsync<TWrapped> = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped>>) ? Output<TWrapped> : Output<TWrapped> | null> extends BaseSchemaAsync<Input<TWrapped> | null, TOutput> - added:
interface NullishSchema<TWrapped extends BaseSchema, TDefault extends Default<TWrapped> = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped>) ? Output<TWrapped> : Output<TWrapped> | null | undefined> extends BaseSchema<Input<TWrapped> | null | undefined, TOutput> - added:
interface NullishSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends DefaultAsync<TWrapped> = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped>>) ? Output<TWrapped> : Output<TWrapped> | null | undefined> extends BaseSchemaAsync<Input<TWrapped> | null | undefined, TOutput> - added:
interface NumberSchema<TOutput = number> extends BaseSchema<number, TOutput> - added:
interface NumberSchemaAsync<TOutput = number> extends BaseSchemaAsync<number, TOutput> - added:
interface ObjectEntries - added:
interface ObjectEntriesAsync - added:
interface ObjectPathItem - added:
interface ObjectSchema<TEntries extends ObjectEntries, TRest extends BaseSchema | undefined = undefined, TOutput = ObjectOutput<TEntries, TRest>> extends BaseSchema<ObjectInput<TEntries, TRest>, TOutput> - added:
interface ObjectSchemaAsync<TEntries extends ObjectEntriesAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined = undefined, TOutput = ObjectOutput<TEntries, TRest>> extends BaseSchemaAsync<ObjectInput<TEntries, TRest>, TOutput> - added:
interface OctalValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface OptionalSchema<TWrapped extends BaseSchema, TDefault extends Default<TWrapped> = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped>) ? Output<TWrapped> : Output<TWrapped> | undefined> extends BaseSchema<Input<TWrapped> | undefined, TOutput> - added:
interface OptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends DefaultAsync<TWrapped> = undefined, TOutput = TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped>>) ? Output<TWrapped> : Output<TWrapped> | undefined> extends BaseSchemaAsync<Input<TWrapped> | undefined, TOutput> - added:
interface PicklistSchema<TOptions extends PicklistOptions, TOutput = TOptions[number]> extends BaseSchema<TOptions[number], TOutput> - added:
interface PicklistSchemaAsync<TOptions extends PicklistOptions, TOutput = TOptions[number]> extends BaseSchemaAsync<TOptions[number], TOutput> - added:
interface PipeActionContext - added:
interface PipeActionIssue - added:
interface RecordPathItem - added:
interface RecordSchema<TKey extends RecordKey, TValue extends BaseSchema, TOutput = RecordOutput<TKey, TValue>> extends BaseSchema<RecordInput<TKey, TValue>, TOutput> - added:
interface RecordSchemaAsync<TKey extends RecordKeyAsync, TValue extends BaseSchema | BaseSchemaAsync, TOutput = RecordOutput<TKey, TValue>> extends BaseSchemaAsync<RecordInput<TKey, TValue>, TOutput> - added:
interface RegexValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface SafeIntegerValidation<TInput extends number> extends BaseValidation<TInput> - added:
interface SchemaConfig - added:
interface SchemaIssue extends Omit<SchemaConfig, 'message'> - added:
interface SetPathItem - added:
interface SetSchema<TValue extends BaseSchema, TOutput = SetOutput<TValue>> extends BaseSchema<SetInput<TValue>, TOutput> - added:
interface SetSchemaAsync<TValue extends BaseSchema | BaseSchemaAsync, TOutput = SetOutput<TValue>> extends BaseSchemaAsync<SetInput<TValue>, TOutput> - added:
interface SizeValidation<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number> extends BaseValidation<TInput> - added:
interface SomeValidation<TInput extends any[]> extends BaseValidation<TInput> - added:
interface SpecialSchema<TInput, TOutput = TInput> extends BaseSchema<TInput, TOutput> - added:
interface SpecialSchemaAsync<TInput, TOutput = TInput> extends BaseSchemaAsync<TInput, TOutput> - added:
interface StartsWithValidation<TInput extends string, TRequirement extends string> extends BaseValidation<TInput> - added:
interface StringSchema<TOutput = string> extends BaseSchema<string, TOutput> - added:
interface StringSchemaAsync<TOutput = string> extends BaseSchemaAsync<string, TOutput> - added:
interface SymbolSchema<TOutput = symbol> extends BaseSchema<symbol, TOutput> - added:
interface SymbolSchemaAsync<TOutput = symbol> extends BaseSchemaAsync<symbol, TOutput> - added:
interface ToCustomTransformation<TInput> extends BaseTransformation<TInput> - added:
interface ToCustomTransformationAsync<TInput> extends BaseTransformationAsync<TInput> - added:
interface ToLowerCaseTransformation extends BaseTransformation<string> - added:
interface ToMaxValueTransformation<TInput extends string | number | bigint | Date, TRequirement extends TInput> extends BaseTransformation<TInput> - added:
interface ToMinValueTransformation<TInput extends string | number | bigint | Date, TRequirement extends TInput> extends BaseTransformation<TInput> - added:
interface ToTrimmedEndTransformation extends BaseTransformation<string> - added:
interface ToTrimmedStartTransformation extends BaseTransformation<string> - added:
interface ToTrimmedTransformation extends BaseTransformation<string> - added:
interface ToUpperCaseTransformation extends BaseTransformation<string> - added:
interface TuplePathItem - added:
interface TupleSchema<TItems extends TupleItems, TRest extends BaseSchema | undefined = undefined, TOutput = TupleOutput<TItems, TRest>> extends BaseSchema<TupleInput<TItems, TRest>, TOutput> - added:
interface TupleSchemaAsync<TItems extends TupleItemsAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined = undefined, TOutput = TupleOutput<TItems, TRest>> extends BaseSchemaAsync<TupleInput<TItems, TRest>, TOutput> - added:
interface TypedSchemaResult<TOutput> - added:
interface UlidValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface UndefinedSchema<TOutput = undefined> extends BaseSchema<undefined, TOutput> - added:
interface UndefinedSchemaAsync<TOutput = undefined> extends BaseSchemaAsync<undefined, TOutput> - added:
interface UnionSchema<TOptions extends UnionOptions, TOutput = Output<TOptions[number]>> extends BaseSchema<Input<TOptions[number]>, TOutput> - added:
interface UnionSchemaAsync<TOptions extends UnionOptionsAsync, TOutput = Output<TOptions[number]>> extends BaseSchemaAsync<Input<TOptions[number]>, TOutput> - added:
interface UnknownPathItem - added:
interface UnknownSchema<TOutput = unknown> extends BaseSchema<unknown, TOutput> - added:
interface UnknownSchemaAsync<TOutput = unknown> extends BaseSchemaAsync<unknown, TOutput> - added:
interface UntypedSchemaResult - added:
interface UrlValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface UuidValidation<TInput extends string> extends BaseValidation<TInput> - added:
interface ValidActionResult<TOutput> - added:
interface ValueValidation<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput> extends BaseValidation<TInput> - added:
interface VariantSchema<TKey extends string, TOptions extends VariantOptions<TKey>, TOutput = Output<TOptions[number]>> extends BaseSchema<Input<TOptions[number]>, TOutput> - added:
interface VariantSchemaAsync<TKey extends string, TOptions extends VariantOptionsAsync<TKey>, TOutput = Output<TOptions[number]>> extends BaseSchemaAsync<Input<TOptions[number]>, TOutput> - added:
interface VoidSchema<TOutput = void> extends BaseSchema<void, TOutput> - added:
interface VoidSchemaAsync<TOutput = void> extends BaseSchemaAsync<void, TOutput> - added:
method BaseSchema._parse(input: unknown, config?: SchemaConfig): SchemaResult<TOutput> - added:
method BaseSchemaAsync._parse(input: unknown, config?: SchemaConfig): Promise<SchemaResult<TOutput>> - added:
method BaseTransformation._parse(input: TInput): PipeActionResult<TInput> - added:
method BaseTransformationAsync._parse(input: TInput): Promise<PipeActionResult<TInput>> - added:
method BaseValidation._parse(input: TInput): PipeActionResult<TInput> - added:
method BaseValidationAsync._parse(input: TInput): Promise<PipeActionResult<TInput>> - added:
property AnySchema.pipe: Pipe<any> | undefined - added:
property AnySchema.type: 'any' - added:
property AnySchemaAsync.pipe: PipeAsync<any> | undefined - added:
property AnySchemaAsync.type: 'any' - added:
property ArrayPathItem.input: unknown[] - added:
property ArrayPathItem.key: number - added:
property ArrayPathItem.origin: 'value' - added:
property ArrayPathItem.type: 'array' - added:
property ArrayPathItem.value: unknown - added:
property ArraySchema.item: TItem - added:
property ArraySchema.message: ErrorMessage | undefined - added:
property ArraySchema.pipe: Pipe<Output<TItem>[]> | undefined - added:
property ArraySchema.type: 'array' - added:
property ArraySchemaAsync.item: TItem - added:
property ArraySchemaAsync.message: ErrorMessage | undefined - added:
property ArraySchemaAsync.pipe: PipeAsync<Output<TItem>[]> | undefined - added:
property ArraySchemaAsync.type: 'array' - added:
property BaseSchema._types?: { input: TInput; output: TOutput } - added:
property BaseSchema.async: false - added:
property BaseSchema.expects: string - added:
property BaseSchema.type: string - added:
property BaseSchemaAsync._types?: { input: TInput; output: TOutput } - added:
property BaseSchemaAsync.async: true - added:
property BaseSchemaAsync.expects: string - added:
property BaseSchemaAsync.type: string - added:
property BaseTransformation.async: false - added:
property BaseTransformation.type: string - added:
property BaseTransformationAsync.async: true - added:
property BaseTransformationAsync.type: string - added:
property BaseValidation.async: false - added:
property BaseValidation.expects: string | null - added:
property BaseValidation.message: ErrorMessage | undefined - added:
property BaseValidation.requirement: unknown - added:
property BaseValidation.type: string - added:
property BaseValidationAsync.async: true - added:
property BaseValidationAsync.expects: string | null - added:
property BaseValidationAsync.message: ErrorMessage | undefined - added:
property BaseValidationAsync.requirement: unknown - added:
property BaseValidationAsync.type: string - added:
property BicValidation.requirement: RegExp - added:
property BicValidation.type: 'bic' - added:
property BigintSchema.message: ErrorMessage | undefined - added:
property BigintSchema.pipe: Pipe<bigint> | undefined - added:
property BigintSchema.type: 'bigint' - added:
property BigintSchemaAsync.message: ErrorMessage | undefined - added:
property BigintSchemaAsync.pipe: PipeAsync<bigint> | undefined - added:
property BigintSchemaAsync.type: 'bigint' - added:
property BlobSchema.message: ErrorMessage | undefined - added:
property BlobSchema.pipe: Pipe<Blob> | undefined - added:
property BlobSchema.type: 'blob' - added:
property BlobSchemaAsync.message: ErrorMessage | undefined - added:
property BlobSchemaAsync.pipe: PipeAsync<Blob> | undefined - added:
property BlobSchemaAsync.type: 'blob' - added:
property BooleanSchema.message: ErrorMessage | undefined - added:
property BooleanSchema.pipe: Pipe<boolean> | undefined - added:
property BooleanSchema.type: 'boolean' - added:
property BooleanSchemaAsync.message: ErrorMessage | undefined - added:
property BooleanSchemaAsync.pipe: PipeAsync<boolean> | undefined - added:
property BooleanSchemaAsync.type: 'boolean' - added:
property Brand[BrandSymbol]: { [TValue in TName]: TValue } - added:
property BytesValidation.requirement: TRequirement - added:
property BytesValidation.type: 'bytes' - added:
property CreditCardValidation.requirement: (input: TInput) => boolean - added:
property CreditCardValidation.type: 'credit_card' - added:
property Cuid2Validation.requirement: RegExp - added:
property Cuid2Validation.type: 'cuid2' - added:
property CustomValidation.requirement: (input: TInput) => boolean - added:
property CustomValidation.type: 'custom' - added:
property CustomValidationAsync.requirement: (input: TInput) => Promise<boolean> - added:
property CustomValidationAsync.type: 'custom' - added:
property DateSchema.message: ErrorMessage | undefined - added:
property DateSchema.pipe: Pipe<Date> | undefined - added:
property DateSchema.type: 'date' - added:
property DateSchemaAsync.message: ErrorMessage | undefined - added:
property DateSchemaAsync.pipe: PipeAsync<Date> | undefined - added:
property DateSchemaAsync.type: 'date' - added:
property DecimalValidation.requirement: RegExp - added:
property DecimalValidation.type: 'decimal' - added:
property EmailValidation.requirement: RegExp - added:
property EmailValidation.type: 'email' - added:
property EmojiValidation.requirement: RegExp - added:
property EmojiValidation.type: 'emoji' - added:
property EndsWithValidation.requirement: TRequirement - added:
property EndsWithValidation.type: 'ends_with' - added:
property EnumSchema.enum: TEnum - added:
property EnumSchema.message: ErrorMessage | undefined - added:
property EnumSchema.type: 'enum' - added:
property EnumSchemaAsync.enum: TEnum - added:
property EnumSchemaAsync.message: ErrorMessage | undefined - added:
property EnumSchemaAsync.type: 'enum' - added:
property EveryValidation.requirement: (element: TInput[number], index: number, array: TInput[number][]) => boolean - added:
property EveryValidation.type: 'every' - added:
property ExcludesValidation.requirement: TRequirement - added:
property ExcludesValidation.type: 'excludes' - added:
property FallbackInfo.input: unknown - added:
property FallbackInfo.issues: SchemaIssues - added:
property FiniteValidation.requirement: (input: TInput) => boolean - added:
property FiniteValidation.type: 'finite' - added:
property FlatErrors.nested: Partial<Record<NestedPath<TSchema>, [string, ...string[]]>> - added:
property FlatErrors.root?: [string, ...string[]] - added:
property HashValidation.requirement: RegExp - added:
property HashValidation.type: 'hash' - added:
property HexColorValidation.requirement: RegExp - added:
property HexColorValidation.type: 'hex_color' - added:
property HexadecimalValidation.requirement: RegExp - added:
property HexadecimalValidation.type: 'hexadecimal' - added:
property ImeiValidation.requirement: [RegExp, typeof isLuhnAlgo] - added:
property ImeiValidation.type: 'imei' - added:
property IncludesValidation.requirement: TRequirement - added:
property IncludesValidation.type: 'includes' - added:
property InstanceSchema.class: TClass - added:
property InstanceSchema.message: ErrorMessage | undefined - added:
property InstanceSchema.pipe: Pipe<InstanceType<TClass>> | undefined - added:
property InstanceSchema.type: 'instance' - added:
property InstanceSchemaAsync.class: TClass - added:
property InstanceSchemaAsync.message: ErrorMessage | undefined - added:
property InstanceSchemaAsync.pipe: PipeAsync<InstanceType<TClass>> | undefined - added:
property InstanceSchemaAsync.type: 'instance' - added:
property IntegerValidation.requirement: (input: TInput) => boolean - added:
property IntegerValidation.type: 'integer' - added:
property IntersectSchema.message: ErrorMessage | undefined - added:
property IntersectSchema.options: TOptions - added:
property IntersectSchema.pipe: Pipe<IntersectOutput<TOptions>> | undefined - added:
property IntersectSchema.type: 'intersect' - added:
property IntersectSchemaAsync.message: ErrorMessage | undefined - added:
property IntersectSchemaAsync.options: TOptions - added:
property IntersectSchemaAsync.pipe: PipeAsync<IntersectInput<TOptions>> | undefined - added:
property IntersectSchemaAsync.type: 'intersect' - added:
property InvalidActionResult.issues: PipeActionIssues - added:
property InvalidActionResult.output?: undefined - added:
property IpValidation.requirement: [RegExp, RegExp] - added:
property IpValidation.type: 'ip' - added:
property Ipv4Validation.requirement: RegExp - added:
property Ipv4Validation.type: 'ipv4' - added:
property Ipv6Validation.requirement: RegExp - added:
property Ipv6Validation.type: 'ipv6' - added:
property IsoDateTimeValidation.requirement: RegExp - added:
property IsoDateTimeValidation.type: 'iso_date_time' - added:
property IsoDateValidation.requirement: RegExp - added:
property IsoDateValidation.type: 'iso_date' - added:
property IsoTimeSecondValidation.requirement: RegExp - added:
property IsoTimeSecondValidation.type: 'iso_time_second' - added:
property IsoTimeValidation.requirement: RegExp - added:
property IsoTimeValidation.type: 'iso_time' - added:
property IsoTimestampValidation.requirement: RegExp - added:
property IsoTimestampValidation.type: 'iso_timestamp' - added:
property IsoWeekValidation.requirement: RegExp - added:
property IsoWeekValidation.type: 'iso_week' - added:
property LazySchema.getter: TGetter - added:
property LazySchema.type: 'lazy' - added:
property LazySchemaAsync.getter: TGetter - added:
property LazySchemaAsync.type: 'lazy' - added:
property LengthValidation.requirement: TRequirement - added:
property LengthValidation.type: 'length' - added:
property LiteralSchema.literal: TLiteral - added:
property LiteralSchema.message: ErrorMessage | undefined - added:
property LiteralSchema.type: 'literal' - added:
property LiteralSchemaAsync.literal: TLiteral - added:
property LiteralSchemaAsync.message: ErrorMessage | undefined - added:
property LiteralSchemaAsync.type: 'literal' - added:
property Mac48Validation.requirement: RegExp - added:
property Mac48Validation.type: 'mac48' - added:
property Mac64Validation.requirement: RegExp - added:
property Mac64Validation.type: 'mac64' - added:
property MacValidation.requirement: [RegExp, RegExp] - added:
property MacValidation.type: 'mac' - added:
property MapPathItem.input: Map<unknown, unknown> - added:
property MapPathItem.key: unknown - added:
property MapPathItem.origin: 'key' | 'value' - added:
property MapPathItem.type: 'map' - added:
property MapPathItem.value: unknown - added:
property MapSchema.key: TKey - added:
property MapSchema.message: ErrorMessage | undefined - added:
property MapSchema.pipe: Pipe<MapOutput<TKey, TValue>> | undefined - added:
property MapSchema.type: 'map' - added:
property MapSchema.value: TValue - added:
property MapSchemaAsync.key: TKey - added:
property MapSchemaAsync.message: ErrorMessage | undefined - added:
property MapSchemaAsync.pipe: PipeAsync<MapOutput<TKey, TValue>> | undefined - added:
property MapSchemaAsync.type: 'map' - added:
property MapSchemaAsync.value: TValue - added:
property MaxBytesValidation.requirement: TRequirement - added:
property MaxBytesValidation.type: 'max_bytes' - added:
property MaxLengthValidation.requirement: TRequirement - added:
property MaxLengthValidation.type: 'max_length' - added:
property MaxSizeValidation.requirement: TRequirement - added:
property MaxSizeValidation.type: 'max_size' - added:
property MaxValueValidation.requirement: TRequirement - added:
property MaxValueValidation.type: 'max_value' - added:
property MimeTypeValidation.requirement: TRequirement - added:
property MimeTypeValidation.type: 'mime_type' - added:
property MinBytesValidation.requirement: TRequirement - added:
property MinBytesValidation.type: 'min_bytes' - added:
property MinLengthValidation.requirement: TRequirement - added:
property MinLengthValidation.type: 'min_length' - added:
property MinSizeValidation.requirement: TRequirement - added:
property MinSizeValidation.type: 'min_size' - added:
property MinValueValidation.requirement: TRequirement - added:
property MinValueValidation.type: 'min_value' - added:
property MultipleOfValidation.requirement: TRequirement - added:
property MultipleOfValidation.type: 'multiple_of' - added:
property NanSchema.message: ErrorMessage | undefined - added:
property NanSchema.type: 'nan' - added:
property NanSchemaAsync.message: ErrorMessage | undefined - added:
property NanSchemaAsync.type: 'nan' - added:
property NeverSchema.message: ErrorMessage | undefined - added:
property NeverSchema.type: 'never' - added:
property NeverSchemaAsync.message: ErrorMessage | undefined - added:
property NeverSchemaAsync.type: 'never' - added:
property NonNullableSchema.message: ErrorMessage | undefined - added:
property NonNullableSchema.type: 'non_nullable' - added:
property NonNullableSchema.wrapped: TWrapped - added:
property NonNullableSchemaAsync.message: ErrorMessage | undefined - added:
property NonNullableSchemaAsync.type: 'non_nullable' - added:
property NonNullableSchemaAsync.wrapped: TWrapped - added:
property NonNullishSchema.message: ErrorMessage | undefined - added:
property NonNullishSchema.type: 'non_nullish' - added:
property NonNullishSchema.wrapped: TWrapped - added:
property NonNullishSchemaAsync.message: ErrorMessage | undefined - added:
property NonNullishSchemaAsync.type: 'non_nullish' - added:
property NonNullishSchemaAsync.wrapped: TWrapped - added:
property NonOptionalSchema.message: ErrorMessage | undefined - added:
property NonOptionalSchema.type: 'non_optional' - added:
property NonOptionalSchema.wrapped: TWrapped - added:
property NonOptionalSchemaAsync.message: ErrorMessage | undefined - added:
property NonOptionalSchemaAsync.type: 'non_optional' - added:
property NonOptionalSchemaAsync.wrapped: TWrapped - added:
property NotBytesValidation.requirement: TRequirement - added:
property NotBytesValidation.type: 'not_bytes' - added:
property NotLengthValidation.requirement: TRequirement - added:
property NotLengthValidation.type: 'not_length' - added:
property NotSizeValidation.requirement: TRequirement - added:
property NotSizeValidation.type: 'not_size' - added:
property NotValueValidation.requirement: TRequirement - added:
property NotValueValidation.type: 'not_value' - added:
property NullSchema.message: ErrorMessage | undefined - added:
property NullSchema.type: 'null' - added:
property NullSchemaAsync.message: ErrorMessage | undefined - added:
property NullSchemaAsync.type: 'null' - added:
property NullableSchema.default: TDefault - added:
property NullableSchema.type: 'nullable' - added:
property NullableSchema.wrapped: TWrapped - added:
property NullableSchemaAsync.default: TDefault - added:
property NullableSchemaAsync.type: 'nullable' - added:
property NullableSchemaAsync.wrapped: TWrapped - added:
property NullishSchema.default: TDefault - added:
property NullishSchema.type: 'nullish' - added:
property NullishSchema.wrapped: TWrapped - added:
property NullishSchemaAsync.default: TDefault - added:
property NullishSchemaAsync.type: 'nullish' - added:
property NullishSchemaAsync.wrapped: TWrapped - added:
property NumberSchema.message: ErrorMessage | undefined - added:
property NumberSchema.pipe: Pipe<number> | undefined - added:
property NumberSchema.type: 'number' - added:
property NumberSchemaAsync.message: ErrorMessage | undefined - added:
property NumberSchemaAsync.pipe: PipeAsync<number> | undefined - added:
property NumberSchemaAsync.type: 'number' - added:
property ObjectPathItem.input: Record<string, unknown> - added:
property ObjectPathItem.key: string - added:
property ObjectPathItem.origin: 'value' - added:
property ObjectPathItem.type: 'object' - added:
property ObjectPathItem.value: unknown - added:
property ObjectSchema.entries: TEntries - added:
property ObjectSchema.message: ErrorMessage | undefined - added:
property ObjectSchema.pipe: Pipe<ObjectOutput<TEntries, TRest>> | undefined - added:
property ObjectSchema.rest: TRest - added:
property ObjectSchema.type: 'object' - added:
property ObjectSchemaAsync.entries: TEntries - added:
property ObjectSchemaAsync.message: ErrorMessage | undefined - added:
property ObjectSchemaAsync.pipe: PipeAsync<ObjectOutput<TEntries, TRest>> | undefined - added:
property ObjectSchemaAsync.rest: TRest - added:
property ObjectSchemaAsync.type: 'object' - added:
property OctalValidation.requirement: RegExp - added:
property OctalValidation.type: 'octal' - added:
property OptionalSchema.default: TDefault - added:
property OptionalSchema.type: 'optional' - added:
property OptionalSchema.wrapped: TWrapped - added:
property OptionalSchemaAsync.default: TDefault - added:
property OptionalSchemaAsync.type: 'optional' - added:
property OptionalSchemaAsync.wrapped: TWrapped - added:
property PicklistSchema.message: ErrorMessage | undefined - added:
property PicklistSchema.options: TOptions - added:
property PicklistSchema.type: 'picklist' - added:
property PicklistSchemaAsync.message: ErrorMessage | undefined - added:
property PicklistSchemaAsync.options: TOptions - added:
property PicklistSchemaAsync.type: 'picklist' - added:
property PipeActionContext.expects: string | null - added:
property PipeActionContext.message: ErrorMessage | undefined - added:
property PipeActionContext.requirement: unknown - added:
property PipeActionContext.type: string - added:
property PipeActionIssue.context: PipeActionContext - added:
property PipeActionIssue.input: unknown - added:
property PipeActionIssue.label: string - added:
property PipeActionIssue.path?: IssuePath - added:
property PipeActionIssue.received?: string - added:
property PipeActionIssue.reference: Function - added:
property RecordPathItem.input: Record<string | number | symbol, unknown> - added:
property RecordPathItem.key: string | number | symbol - added:
property RecordPathItem.origin: 'key' | 'value' - added:
property RecordPathItem.type: 'record' - added:
property RecordPathItem.value: unknown - added:
property RecordSchema.key: TKey - added:
property RecordSchema.message: ErrorMessage | undefined - added:
property RecordSchema.pipe: Pipe<RecordOutput<TKey, TValue>> | undefined - added:
property RecordSchema.type: 'record' - added:
property RecordSchema.value: TValue - added:
property RecordSchemaAsync.key: TKey - added:
property RecordSchemaAsync.message: ErrorMessage | undefined - added:
property RecordSchemaAsync.pipe: PipeAsync<RecordOutput<TKey, TValue>> | undefined - added:
property RecordSchemaAsync.type: 'record' - added:
property RecordSchemaAsync.value: TValue - added:
property RegexValidation.requirement: RegExp - added:
property RegexValidation.type: 'regex' - added:
property SafeIntegerValidation.requirement: (input: TInput) => boolean - added:
property SafeIntegerValidation.type: 'safe_integer' - added:
property SchemaConfig.abortEarly?: boolean - added:
property SchemaConfig.abortPipeEarly?: boolean - added:
property SchemaConfig.lang?: string - added:
property SchemaConfig.message?: ErrorMessage - added:
property SchemaConfig.skipPipe?: boolean - added:
property SchemaIssue.context: string - added:
property SchemaIssue.expected: string | null - added:
property SchemaIssue.input: unknown - added:
property SchemaIssue.issues?: SchemaIssues - added:
property SchemaIssue.message: string - added:
property SchemaIssue.path?: IssuePath - added:
property SchemaIssue.reason: IssueReason - added:
property SchemaIssue.received: string - added:
property SchemaIssue.requirement?: unknown - added:
property SetPathItem.input: Set<unknown> - added:
property SetPathItem.key: number - added:
property SetPathItem.origin: 'value' - added:
property SetPathItem.type: 'set' - added:
property SetPathItem.value: unknown - added:
property SetSchema.message: ErrorMessage | undefined - added:
property SetSchema.pipe: Pipe<SetOutput<TValue>> | undefined - added:
property SetSchema.type: 'set' - added:
property SetSchema.value: TValue - added:
property SetSchemaAsync.message: ErrorMessage | undefined - added:
property SetSchemaAsync.pipe: PipeAsync<SetOutput<TValue>> | undefined - added:
property SetSchemaAsync.type: 'set' - added:
property SetSchemaAsync.value: TValue - added:
property SizeValidation.requirement: TRequirement - added:
property SizeValidation.type: 'size' - added:
property SomeValidation.requirement: (element: TInput[number], index: number, array: TInput[number][]) => boolean - added:
property SomeValidation.type: 'some' - added:
property SpecialSchema.check: (input: unknown) => boolean - added:
property SpecialSchema.message: ErrorMessage | undefined - added:
property SpecialSchema.pipe: Pipe<TInput> | undefined - added:
property SpecialSchema.type: 'special' - added:
property SpecialSchemaAsync.check: (input: unknown) => boolean | Promise<boolean> - added:
property SpecialSchemaAsync.message: ErrorMessage | undefined - added:
property SpecialSchemaAsync.pipe: PipeAsync<TInput> | undefined - added:
property SpecialSchemaAsync.type: 'special' - added:
property StartsWithValidation.requirement: TRequirement - added:
property StartsWithValidation.type: 'starts_with' - added:
property StringSchema.message: ErrorMessage | undefined - added:
property StringSchema.pipe: Pipe<string> | undefined - added:
property StringSchema.type: 'string' - added:
property StringSchemaAsync.message: ErrorMessage | undefined - added:
property StringSchemaAsync.pipe: PipeAsync<string> | undefined - added:
property StringSchemaAsync.type: 'string' - added:
property SymbolSchema.message: ErrorMessage | undefined - added:
property SymbolSchema.type: 'symbol' - added:
property SymbolSchemaAsync.message: ErrorMessage | undefined - added:
property SymbolSchemaAsync.type: 'symbol' - added:
property ToCustomTransformation.type: 'to_custom' - added:
property ToCustomTransformationAsync.type: 'to_custom' - added:
property ToLowerCaseTransformation.type: 'to_lower_case' - added:
property ToMaxValueTransformation.requirement: TRequirement - added:
property ToMaxValueTransformation.type: 'to_max_value' - added:
property ToMinValueTransformation.requirement: TRequirement - added:
property ToMinValueTransformation.type: 'to_min_value' - added:
property ToTrimmedEndTransformation.type: 'to_trimmed_end' - added:
property ToTrimmedStartTransformation.type: 'to_trimmed_start' - added:
property ToTrimmedTransformation.type: 'to_trimmed' - added:
property ToUpperCaseTransformation.type: 'to_upper_case' - added:
property TuplePathItem.input: [unknown, ...unknown[]] - added:
property TuplePathItem.key: number - added:
property TuplePathItem.origin: 'value' - added:
property TuplePathItem.type: 'tuple' - added:
property TuplePathItem.value: unknown - added:
property TupleSchema.items: TItems - added:
property TupleSchema.message: ErrorMessage | undefined - added:
property TupleSchema.pipe: Pipe<TupleOutput<TItems, TRest>> | undefined - added:
property TupleSchema.rest: TRest - added:
property TupleSchema.type: 'tuple' - added:
property TupleSchemaAsync.items: TItems - added:
property TupleSchemaAsync.message: ErrorMessage | undefined - added:
property TupleSchemaAsync.pipe: PipeAsync<TupleOutput<TItems, TRest>> | undefined - added:
property TupleSchemaAsync.rest: TRest - added:
property TupleSchemaAsync.type: 'tuple' - added:
property TypedSchemaResult.issues?: SchemaIssues - added:
property TypedSchemaResult.output: TOutput - added:
property TypedSchemaResult.typed: true - added:
property UlidValidation.requirement: RegExp - added:
property UlidValidation.type: 'ulid' - added:
property UndefinedSchema.message: ErrorMessage | undefined - added:
property UndefinedSchema.type: 'undefined' - added:
property UndefinedSchemaAsync.message: ErrorMessage | undefined - added:
property UndefinedSchemaAsync.type: 'undefined' - added:
property UnionSchema.message: ErrorMessage | undefined - added:
property UnionSchema.options: TOptions - added:
property UnionSchema.pipe: Pipe<Output<TOptions[number]>> | undefined - added:
property UnionSchema.type: 'union' - added:
property UnionSchemaAsync.message: ErrorMessage | undefined - added:
property UnionSchemaAsync.options: TOptions - added:
property UnionSchemaAsync.pipe: PipeAsync<Input<TOptions[number]>> | undefined - added:
property UnionSchemaAsync.type: 'union' - added:
property UnknownPathItem.input: unknown - added:
property UnknownPathItem.key: unknown - added:
property UnknownPathItem.origin: 'key' | 'value' - added:
property UnknownPathItem.type: 'unknown' - added:
property UnknownPathItem.value: unknown - added:
property UnknownSchema.pipe: Pipe<unknown> | undefined - added:
property UnknownSchema.type: 'unknown' - added:
property UnknownSchemaAsync.pipe: PipeAsync<unknown> | undefined - added:
property UnknownSchemaAsync.type: 'unknown' - added:
property UntypedSchemaResult.issues: SchemaIssues - added:
property UntypedSchemaResult.output: unknown - added:
property UntypedSchemaResult.typed: false - added:
property UrlValidation.requirement: (input: TInput) => boolean - added:
property UrlValidation.type: 'url' - added:
property UuidValidation.requirement: RegExp - added:
property UuidValidation.type: 'uuid' - added:
property ValidActionResult.issues?: undefined - added:
property ValidActionResult.output: TOutput - added:
property ValueValidation.requirement: TRequirement - added:
property ValueValidation.type: 'value' - added:
property VariantSchema.key: TKey - added:
property VariantSchema.message: ErrorMessage | undefined - added:
property VariantSchema.options: TOptions - added:
property VariantSchema.pipe: Pipe<Output<TOptions[number]>> | undefined - added:
property VariantSchema.type: 'variant' - added:
property VariantSchemaAsync.key: TKey - added:
property VariantSchemaAsync.message: ErrorMessage | undefined - added:
property VariantSchemaAsync.options: TOptions - added:
property VariantSchemaAsync.pipe: PipeAsync<Input<TOptions[number]>> | undefined - added:
property VariantSchemaAsync.type: 'variant' - added:
property VoidSchema.message: ErrorMessage | undefined - added:
property VoidSchema.type: 'void' - added:
property VoidSchemaAsync.message: ErrorMessage | undefined - added:
property VoidSchemaAsync.type: 'void' - added:
type Default<TSchema extends BaseSchema> = Input<TSchema> | (() => Input<TSchema> | undefined) | undefined - added:
type DefaultAsync<TSchema extends BaseSchema | BaseSchemaAsync> = Input<TSchema> | (() => Input<TSchema> | Promise<Input<TSchema> | undefined> | undefined) | undefined - added:
type Fallback<TSchema extends BaseSchema> = Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema>) - added:
type FallbackAsync<TSchema extends BaseSchemaAsync> = Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema> | Promise<Output<TSchema>>) - added:
type IntersectOptionsAsync = MaybeReadonly<[BaseSchema | BaseSchemaAsync, BaseSchema | BaseSchemaAsync, ...(BaseSchema[] | BaseSchemaAsync[])]>