Skip to content

Upgrading valibot 0.20 to 0.21

Review needed0.20.1 → 0.21.0Changed1Fixed2

Review neededUpgrade verdict

1 behavior change.

  • Change structure of schemas, validations and transformations to make properties accessible (pull request ).
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • removed: function excludes<TInput extends string>(requirement: string, error?: ErrorMessage): (input: TInput) => PipeResult<TInput>
  • removed: function includes<TInput extends string>(requirement: string, error?: ErrorMessage): (input: TInput) => PipeResult<TInput>
  • changed: function array<TItem extends BaseSchema>(item: TItem, error?: ErrorMessage, pipe?: Pipe<Output<TItem>[]>): ArraySchema<TItem> → function array<TItem extends BaseSchema>(item: TItem, message?: ErrorMessage, pipe?: Pipe<Output<TItem>[]>): ArraySchema<TItem>
  • changed: function arrayAsync<TItem extends BaseSchema | BaseSchemaAsync>(item: TItem, error?: ErrorMessage, pipe?: PipeAsync<Output<TItem>[]>): ArraySchemaAsync<TItem> → function arrayAsync<TItem extends BaseSchema | BaseSchemaAsync>(item: TItem, message?: ErrorMessage, pipe?: PipeAsync<Output<TItem>[]>): ArraySchemaAsync<TItem>
  • changed: function bigint(error?: ErrorMessage, pipe?: Pipe<bigint>): BigintSchema → function bigint(message?: ErrorMessage, pipe?: Pipe<bigint>): BigintSchema
  • changed: function bigintAsync(error?: ErrorMessage, pipe?: PipeAsync<bigint>): BigintSchemaAsync → function bigintAsync(message?: ErrorMessage, pipe?: PipeAsync<bigint>): BigintSchemaAsync
  • changed: function blob(error?: ErrorMessage, pipe?: Pipe<Blob>): BlobSchema → function blob(message?: ErrorMessage, pipe?: Pipe<Blob>): BlobSchema
  • changed: function blobAsync(error?: ErrorMessage, pipe?: PipeAsync<Blob>): BlobSchemaAsync → function blobAsync(message?: ErrorMessage, pipe?: PipeAsync<Blob>): BlobSchemaAsync
  • changed: function boolean(error?: ErrorMessage, pipe?: Pipe<boolean>): BooleanSchema → function boolean(message?: ErrorMessage, pipe?: Pipe<boolean>): BooleanSchema
  • changed: function booleanAsync(error?: ErrorMessage, pipe?: PipeAsync<boolean>): BooleanSchemaAsync → function booleanAsync(message?: ErrorMessage, pipe?: PipeAsync<boolean>): BooleanSchemaAsync
  • changed: function bytes<TInput extends string>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function bytes<TInput extends string, TRequirement extends number>(requirement: TRequirement, message?: ErrorMessage): BytesValidation<TInput, TRequirement>
  • changed: function cuid2<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function cuid2<TInput extends string>(message?: ErrorMessage): Cuid2Validation<TInput>
  • changed: function custom<TInput>(requirement: (input: TInput) => boolean, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function custom<TInput>(requirement: (input: TInput) => boolean, message?: ErrorMessage): CustomValidation<TInput>
  • changed: function customAsync<TInput>(requirement: (input: TInput) => Promise<boolean>, error?: ErrorMessage): (input: TInput) => Promise<PipeResult<TInput>> → function customAsync<TInput>(requirement: (input: TInput) => Promise<boolean>, message?: ErrorMessage): CustomValidationAsync<TInput>
  • changed: function date(error?: ErrorMessage, pipe?: Pipe<Date>): DateSchema → function date(message?: ErrorMessage, pipe?: Pipe<Date>): DateSchema
  • changed: function dateAsync(error?: ErrorMessage, pipe?: PipeAsync<Date>): DateSchemaAsync → function dateAsync(message?: ErrorMessage, pipe?: PipeAsync<Date>): DateSchemaAsync
  • changed: function email<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function email<TInput extends string>(message?: ErrorMessage): EmailValidation<TInput>
  • changed: function emoji<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function emoji<TInput extends string>(message?: ErrorMessage): EmojiValidation<TInput>
  • changed: function endsWith<TInput extends string>(requirement: string, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function endsWith<TInput extends string, TRequirement extends string>(requirement: TRequirement, message?: ErrorMessage): EndsWithValidation<TInput, TRequirement>
  • changed: function enumAsync<TEnum extends Enum>(enum_: TEnum, error?: ErrorMessage): EnumSchemaAsync<TEnum> → function enumAsync<TEnum extends Enum>(enum_: TEnum, message?: ErrorMessage): EnumSchemaAsync<TEnum>
  • changed: function enum_<TEnum extends Enum>(enum_: TEnum, error?: ErrorMessage): EnumSchema<TEnum> → function enum_<TEnum extends Enum>(enum_: TEnum, message?: ErrorMessage): EnumSchema<TEnum>
  • changed: function equal<TInput extends string | number | bigint | boolean, TRequirement extends TInput>(requirement: TRequirement, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function equal<TInput extends string | number | bigint | boolean, TRequirement extends TInput>(requirement: TRequirement, message?: ErrorMessage): EqualValidation<TInput, TRequirement>
  • changed: function excludes<TInput extends TItem[], TItem>(requirement: TItem, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function excludes<TInput extends string | any[], const TRequirement extends TInput extends any[] ? TInput[number] : TInput>(requirement: TRequirement, message?: ErrorMessage): ExcludesValidation<TInput, TRequirement>
  • changed: function fallback<TSchema extends BaseSchema, TFallback extends Output<TSchema>>(schema: TSchema, fallback: TFallback | ((info?: FallbackInfo) => TFallback)): SchemaWithFallback<TSchema, TFallback> → function fallback<TSchema extends BaseSchema, const TFallback extends Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema>)>(schema: TSchema, fallback: TFallback): SchemaWithFallback<TSchema, TFallback>
  • changed: function fallbackAsync<TSchema extends BaseSchemaAsync, TFallback extends Output<TSchema>>(schema: TSchema, fallback: TFallback | ((info?: FallbackInfo) => TFallback | Promise<TFallback>)): SchemaWithFallbackAsync<TSchema, TFallback> → function fallbackAsync<TSchema extends BaseSchemaAsync, const TFallback extends Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema> | Promise<Output<TSchema>>)>(schema: TSchema, fallback: TFallback): SchemaWithFallbackAsync<TSchema, TFallback>
  • changed: function finite<TInput extends number>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function finite<TInput extends number>(message?: ErrorMessage): FiniteValidation<TInput>
  • changed: function getPipeIssues(validation: string, error: ErrorMessage, input: unknown): { issues: Pick<Issue, 'validation' | 'message' | 'input' | 'path'>[] } → function getPipeIssues(validation: string, message: ErrorMessage, input: unknown, requirement?: unknown): { issues: Pick<Issue, 'validation' | 'message' | 'input' | 'requirement'>[] }
  • changed: function getSchemaIssues(info: ParseInfo | undefined, reason: IssueReason, validation: string, error: ErrorMessage, input: unknown, issues?: Issues): { issues: Issues } → function getSchemaIssues(info: ParseInfo | undefined, reason: IssueReason, validation: string, message: ErrorMessage, input: unknown, issues?: Issues): { issues: Issues }
  • changed: function imei<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function imei<TInput extends string>(message?: ErrorMessage): ImeiValidation<TInput>
  • changed: function includes<TInput extends TItem[], TItem>(requirement: TItem, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function includes<TInput extends string | any[], const TRequirement extends TInput extends any[] ? TInput[number] : TInput>(requirement: TRequirement, message?: ErrorMessage): IncludesValidation<TInput, TRequirement>
  • changed: function instance<TClass extends Class>(of: TClass, error?: ErrorMessage, pipe?: Pipe<InstanceType<TClass>>): InstanceSchema<TClass> → function instance<TClass extends Class>(class_: TClass, message?: ErrorMessage, pipe?: Pipe<InstanceType<TClass>>): InstanceSchema<TClass>
  • changed: function instance<TClass extends Class>(of: TClass, pipe?: Pipe<InstanceType<TClass>>): InstanceSchema<TClass> → function instance<TClass extends Class>(class_: TClass, pipe?: Pipe<InstanceType<TClass>>): InstanceSchema<TClass>
  • changed: function instanceAsync<TClass extends Class>(of: TClass, error?: ErrorMessage, pipe?: PipeAsync<InstanceType<TClass>>): InstanceSchemaAsync<TClass> → function instanceAsync<TClass extends Class>(class_: TClass, message?: ErrorMessage, pipe?: PipeAsync<InstanceType<TClass>>): InstanceSchemaAsync<TClass>
  • changed: function instanceAsync<TClass extends Class>(of: TClass, pipe?: PipeAsync<InstanceType<TClass>>): InstanceSchemaAsync<TClass> → function instanceAsync<TClass extends Class>(class_: TClass, pipe?: PipeAsync<InstanceType<TClass>>): InstanceSchemaAsync<TClass>
  • changed: function integer<TInput extends number>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function integer<TInput extends number>(message?: ErrorMessage): IntegerValidation<TInput>
  • changed: function intersect<TOptions extends IntersectOptions>(options: TOptions, error?: string): IntersectSchema<TOptions> → function intersect<TOptions extends IntersectOptions>(options: TOptions, message?: ErrorMessage): IntersectSchema<TOptions>
  • changed: function ip<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function ip<TInput extends string>(message?: ErrorMessage): IpValidation<TInput>
  • changed: function ipv4<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function ipv4<TInput extends string>(message?: ErrorMessage): Ipv4Validation<TInput>
  • changed: function ipv6<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function ipv6<TInput extends string>(message?: ErrorMessage): Ipv6Validation<TInput>
  • changed: function isoDate<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function isoDate<TInput extends string>(message?: ErrorMessage): IsoDateValidation<TInput>
  • changed: function isoDateTime<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function isoDateTime<TInput extends string>(message?: ErrorMessage): IsoDateTimeValidation<TInput>
  • changed: function isoTime<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function isoTime<TInput extends string>(message?: ErrorMessage): IsoTimeValidation<TInput>
  • changed: function isoTimeSecond<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function isoTimeSecond<TInput extends string>(message?: ErrorMessage): IsoTimeSecondValidation<TInput>
  • changed: function isoTimestamp<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function isoTimestamp<TInput extends string>(message?: ErrorMessage): IsoTimestampValidation<TInput>
  • changed: function isoWeek<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function isoWeek<TInput extends string>(message?: ErrorMessage): IsoWeekValidation<TInput>
  • changed: function length<TInput extends string | any[]>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function length<TInput extends string | any[], TRequirement extends number>(requirement: TRequirement, message?: ErrorMessage): LengthValidation<TInput, TRequirement>
  • changed: function literal<TLiteral extends Literal>(literal: TLiteral, error?: ErrorMessage): LiteralSchema<TLiteral> → function literal<TLiteral extends Literal>(literal: TLiteral, message?: ErrorMessage): LiteralSchema<TLiteral>
  • changed: function literalAsync<TLiteral extends Literal>(literal: TLiteral, error?: ErrorMessage): LiteralSchemaAsync<TLiteral> → function literalAsync<TLiteral extends Literal>(literal: TLiteral, message?: ErrorMessage): LiteralSchemaAsync<TLiteral>
  • changed: function map<TKey extends BaseSchema, TValue extends BaseSchema>(key: TKey, value: TValue, error?: ErrorMessage, pipe?: Pipe<MapOutput<TKey, TValue>>): MapSchema<TKey, TValue> → function map<TKey extends BaseSchema, TValue extends BaseSchema>(key: TKey, value: TValue, message?: ErrorMessage, pipe?: Pipe<MapOutput<TKey, TValue>>): MapSchema<TKey, TValue>
  • changed: function mapAsync<TKey extends BaseSchema | BaseSchemaAsync, TValue extends BaseSchema | BaseSchemaAsync>(key: TKey, value: TValue, error?: ErrorMessage, pipe?: PipeAsync<MapOutput<TKey, TValue>>): MapSchemaAsync<TKey, TValue> → function mapAsync<TKey extends BaseSchema | BaseSchemaAsync, TValue extends BaseSchema | BaseSchemaAsync>(key: TKey, value: TValue, message?: ErrorMessage, pipe?: PipeAsync<MapOutput<TKey, TValue>>): MapSchemaAsync<TKey, TValue>
  • changed: function maxBytes<TInput extends string>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function maxBytes<TInput extends string, TRequirement extends number>(requirement: TRequirement, message?: ErrorMessage): MaxBytesValidation<TInput, TRequirement>
  • changed: function maxLength<TInput extends string | any[]>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function maxLength<TInput extends string | any[], TRequirement extends number>(requirement: TRequirement, message?: ErrorMessage): MaxLengthValidation<TInput, TRequirement>
  • changed: function maxSize<TInput extends Map<any, any> | Set<any> | Blob>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function maxSize<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number>(requirement: TRequirement, message?: ErrorMessage): MaxSizeValidation<TInput, TRequirement>
  • changed: function maxValue<TInput extends string | number | bigint | Date, TRequirement extends TInput>(requirement: TRequirement, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function maxValue<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput>(requirement: TRequirement, message?: ErrorMessage): MaxValueValidation<TInput, TRequirement>
  • changed: function merge<TSchemas extends ObjectSchemas$1, TRest extends BaseSchema | undefined>(schemas: TSchemas, rest: TRest, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<MergeObjects<TSchemas>, TRest>>): ObjectSchema<MergeObjects<TSchemas>, TRest> → function merge<TSchemas extends ObjectSchemas$1, TRest extends BaseSchema | undefined>(schemas: TSchemas, rest: TRest, message?: ErrorMessage, pipe?: Pipe<ObjectOutput<MergeObjects<TSchemas>, TRest>>): ObjectSchema<MergeObjects<TSchemas>, TRest>
  • changed: function merge<TSchemas extends ObjectSchemas$1>(schemas: TSchemas, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<MergeObjects<TSchemas>, undefined>>): ObjectSchema<MergeObjects<TSchemas>> → function merge<TSchemas extends ObjectSchemas$1>(schemas: TSchemas, message?: ErrorMessage, pipe?: Pipe<ObjectOutput<MergeObjects<TSchemas>, undefined>>): ObjectSchema<MergeObjects<TSchemas>>
  • changed: function mergeAsync<TSchemas extends ObjectSchemas, TRest extends BaseSchema | BaseSchemaAsync | undefined>(schemas: TSchemas, rest: TRest, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<MergeObjects<TSchemas>, TRest>>): ObjectSchemaAsync<MergeObjects<TSchemas>, TRest> → function mergeAsync<TSchemas extends ObjectSchemas, TRest extends BaseSchema | BaseSchemaAsync | undefined>(schemas: TSchemas, rest: TRest, message?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<MergeObjects<TSchemas>, TRest>>): ObjectSchemaAsync<MergeObjects<TSchemas>, TRest>
  • changed: function mergeAsync<TSchemas extends ObjectSchemas>(schemas: TSchemas, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<MergeObjects<TSchemas>, undefined>>): ObjectSchemaAsync<MergeObjects<TSchemas>> → function mergeAsync<TSchemas extends ObjectSchemas>(schemas: TSchemas, message?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<MergeObjects<TSchemas>, undefined>>): ObjectSchemaAsync<MergeObjects<TSchemas>>
  • changed: function mimeType<TInput extends Blob>(requirement: `${string}/${string}`[], error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function mimeType<TInput extends Blob, TRequirement extends `${string}/${string}`[]>(requirement: TRequirement, message?: ErrorMessage): MimeTypeValidation<TInput, TRequirement>
  • changed: function minBytes<TInput extends string>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function minBytes<TInput extends string, TRequirement extends number>(requirement: TRequirement, message?: ErrorMessage): MinBytesValidation<TInput, TRequirement>
  • changed: function minLength<TInput extends string | any[]>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function minLength<TInput extends string | any[], TRequirement extends number>(requirement: TRequirement, message?: ErrorMessage): MinLengthValidation<TInput, TRequirement>
  • changed: function minSize<TInput extends Map<any, any> | Set<any> | Blob>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function minSize<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number>(requirement: TRequirement, message?: ErrorMessage): MinSizeValidation<TInput, TRequirement>
  • changed: function minValue<TInput extends string | number | bigint | Date, TRequirement extends TInput>(requirement: TRequirement, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function minValue<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput>(requirement: TRequirement, message?: ErrorMessage): MinValueValidation<TInput, TRequirement>
  • changed: function multipleOf<TInput extends number>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function multipleOf<TInput extends number, TRequirement extends number>(requirement: TRequirement, message?: ErrorMessage): MultipleOfValidation<TInput, TRequirement>
  • changed: function nan(error?: ErrorMessage): NanSchema → function nan(message?: ErrorMessage): NanSchema
  • changed: function nanAsync(error?: ErrorMessage): NanSchemaAsync → function nanAsync(message?: ErrorMessage): NanSchemaAsync
  • changed: function never(error?: ErrorMessage): NeverSchema → function never(message?: ErrorMessage): NeverSchema
  • changed: function neverAsync(error?: ErrorMessage): NeverSchemaAsync → function neverAsync(message?: ErrorMessage): NeverSchemaAsync
  • changed: function nonNullable<TWrapped extends BaseSchema>(wrapped: TWrapped, error?: ErrorMessage): NonNullableSchema<TWrapped> → function nonNullable<TWrapped extends BaseSchema>(wrapped: TWrapped, message?: ErrorMessage): NonNullableSchema<TWrapped>
  • changed: function nonNullableAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, error?: ErrorMessage): NonNullableSchemaAsync<TWrapped> → function nonNullableAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, message?: ErrorMessage): NonNullableSchemaAsync<TWrapped>
  • changed: function nonNullish<TWrapped extends BaseSchema>(wrapped: TWrapped, error?: ErrorMessage): NonNullishSchema<TWrapped> → function nonNullish<TWrapped extends BaseSchema>(wrapped: TWrapped, message?: ErrorMessage): NonNullishSchema<TWrapped>
  • changed: function nonNullishAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, error?: ErrorMessage): NonNullishSchemaAsync<TWrapped> → function nonNullishAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, message?: ErrorMessage): NonNullishSchemaAsync<TWrapped>
  • changed: function nonOptional<TWrapped extends BaseSchema>(wrapped: TWrapped, error?: ErrorMessage): NonOptionalSchema<TWrapped> → function nonOptional<TWrapped extends BaseSchema>(wrapped: TWrapped, message?: ErrorMessage): NonOptionalSchema<TWrapped>
  • changed: function nonOptionalAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, error?: ErrorMessage): NonOptionalSchemaAsync<TWrapped> → function nonOptionalAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped, message?: ErrorMessage): NonOptionalSchemaAsync<TWrapped>
  • changed: function notBytes<TInput extends string>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function notBytes<TInput extends string, TRequirement extends number>(requirement: TRequirement, message?: ErrorMessage): NotBytesValidation<TInput, TRequirement>
  • changed: function notLength<TInput extends string | any[]>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function notLength<TInput extends string | any[], TRequirement extends number>(requirement: TRequirement, message?: ErrorMessage): NotLengthValidation<TInput, TRequirement>
  • changed: function notSize<TInput extends Map<any, any> | Set<any> | Blob>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function notSize<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number>(requirement: TRequirement, message?: ErrorMessage): NotSizeValidation<TInput, TRequirement>
  • changed: function notValue<TInput extends string | number | bigint, TRequirement extends TInput>(requirement: TRequirement, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function notValue<TInput extends string | number | bigint, TRequirement extends TInput>(requirement: TRequirement, message?: ErrorMessage): NotValueValidation<TInput, TRequirement>
  • changed: function nullAsync(error?: ErrorMessage): NullSchemaAsync → function nullAsync(message?: ErrorMessage): NullSchemaAsync
  • changed: function null_(error?: ErrorMessage): NullSchema → function null_(message?: ErrorMessage): NullSchema
  • changed: function nullable<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | undefined = undefined>(wrapped: TWrapped, default_?: TDefault | (() => TDefault)): NullableSchema<TWrapped, TDefault> → function nullable<TWrapped extends BaseSchema, const TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined>(wrapped: TWrapped, default_: TDefault): NullableSchema<TWrapped, TDefault>
  • changed: function nullableAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | undefined | Promise<Input<TWrapped> | undefined> = undefined>(wrapped: TWrapped, default_?: TDefault | (() => TDefault)): NullableSchemaAsync<TWrapped, TDefault> → function nullableAsync<TWrapped extends BaseSchema | BaseSchemaAsync, const TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined>(wrapped: TWrapped, default_: TDefault): NullableSchemaAsync<TWrapped, TDefault>
  • changed: function nullish<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | undefined = undefined>(wrapped: TWrapped, default_?: TDefault | (() => TDefault)): NullishSchema<TWrapped, TDefault> → function nullish<TWrapped extends BaseSchema, const TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined>(wrapped: TWrapped, default_: TDefault): NullishSchema<TWrapped, TDefault>
  • changed: function nullishAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | undefined | Promise<Input<TWrapped> | undefined> = undefined>(wrapped: TWrapped, default_?: TDefault | (() => TDefault)): NullishSchemaAsync<TWrapped, TDefault> → function nullishAsync<TWrapped extends BaseSchema | BaseSchemaAsync, const TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined>(wrapped: TWrapped, default_: TDefault): NullishSchemaAsync<TWrapped, TDefault>
  • changed: function number(error?: ErrorMessage, pipe?: Pipe<number>): NumberSchema → function number(message?: ErrorMessage, pipe?: Pipe<number>): NumberSchema
  • changed: function numberAsync(error?: ErrorMessage, pipe?: PipeAsync<number>): NumberSchemaAsync → function numberAsync(message?: ErrorMessage, pipe?: PipeAsync<number>): NumberSchemaAsync
  • changed: function object<TEntries extends ObjectEntries, TRest extends BaseSchema | undefined>(entries: TEntries, rest: TRest, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<TEntries, TRest>>): ObjectSchema<TEntries, TRest> → function object<TEntries extends ObjectEntries, TRest extends BaseSchema | undefined>(entries: TEntries, rest: TRest, message?: ErrorMessage, pipe?: Pipe<ObjectOutput<TEntries, TRest>>): ObjectSchema<TEntries, TRest>
  • changed: function object<TEntries extends ObjectEntries>(entries: TEntries, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<TEntries, undefined>>): ObjectSchema<TEntries> → function object<TEntries extends ObjectEntries>(entries: TEntries, message?: ErrorMessage, pipe?: Pipe<ObjectOutput<TEntries, undefined>>): ObjectSchema<TEntries>
  • changed: function objectAsync<TEntries extends ObjectEntriesAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined>(entries: TEntries, rest: TRest, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<TEntries, TRest>>): ObjectSchemaAsync<TEntries, TRest> → function objectAsync<TEntries extends ObjectEntriesAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined>(entries: TEntries, rest: TRest, message?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<TEntries, TRest>>): ObjectSchemaAsync<TEntries, TRest>
  • changed: function objectAsync<TEntries extends ObjectEntriesAsync>(entries: TEntries, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<TEntries, undefined>>): ObjectSchemaAsync<TEntries> → function objectAsync<TEntries extends ObjectEntriesAsync>(entries: TEntries, message?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<TEntries, undefined>>): ObjectSchemaAsync<TEntries>
  • changed: function omit<TSchema extends ObjectSchema<any, any>, TKeys extends ObjectKeys<TSchema>, TRest extends BaseSchema | undefined>(schema: TSchema, keys: TKeys, rest: TRest, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<Omit<TSchema['entries'], TKeys[number]>, TRest>>): ObjectSchema<Omit<TSchema['entries'], TKeys[number]>, TRest> → function omit<TSchema extends ObjectSchema<any, any>, TKeys extends ObjectKeys<TSchema>, TRest extends BaseSchema | undefined>(schema: TSchema, keys: TKeys, rest: TRest, message?: ErrorMessage, pipe?: Pipe<ObjectOutput<Omit<TSchema['entries'], TKeys[number]>, TRest>>): ObjectSchema<Omit<TSchema['entries'], TKeys[number]>, TRest>
  • changed: function omit<TSchema extends ObjectSchema<any, any>, TKeys extends ObjectKeys<TSchema>>(schema: TSchema, keys: TKeys, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<Omit<TSchema['entries'], TKeys[number]>, undefined>>): ObjectSchema<Omit<TSchema['entries'], TKeys[number]>> → function omit<TSchema extends ObjectSchema<any, any>, TKeys extends ObjectKeys<TSchema>>(schema: TSchema, keys: TKeys, message?: ErrorMessage, pipe?: Pipe<ObjectOutput<Omit<TSchema['entries'], TKeys[number]>, undefined>>): ObjectSchema<Omit<TSchema['entries'], TKeys[number]>>
  • changed: function omitAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>, TKeys extends ObjectKeys<TSchema>, TRest extends BaseSchema | BaseSchemaAsync | undefined>(schema: TSchema, keys: TKeys, rest: TRest, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Omit<TSchema['entries'], TKeys[number]>, TRest>>): ObjectSchemaAsync<Omit<TSchema['entries'], TKeys[number]>, TRest> → function omitAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>, TKeys extends ObjectKeys<TSchema>, TRest extends BaseSchema | BaseSchemaAsync | undefined>(schema: TSchema, keys: TKeys, rest: TRest, message?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Omit<TSchema['entries'], TKeys[number]>, TRest>>): ObjectSchemaAsync<Omit<TSchema['entries'], TKeys[number]>, TRest>
  • changed: function omitAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>, TKeys extends ObjectKeys<TSchema>>(schema: TSchema, keys: TKeys, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Omit<TSchema['entries'], TKeys[number]>, undefined>>): ObjectSchemaAsync<Omit<TSchema['entries'], TKeys[number]>> → function omitAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>, TKeys extends ObjectKeys<TSchema>>(schema: TSchema, keys: TKeys, message?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Omit<TSchema['entries'], TKeys[number]>, undefined>>): ObjectSchemaAsync<Omit<TSchema['entries'], TKeys[number]>>
  • changed: function optional<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | undefined = undefined>(wrapped: TWrapped, default_?: TDefault | (() => TDefault)): OptionalSchema<TWrapped, TDefault> → function optional<TWrapped extends BaseSchema, const TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined>(wrapped: TWrapped, default_: TDefault): OptionalSchema<TWrapped, TDefault>
  • changed: function optionalAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | undefined | Promise<Input<TWrapped> | undefined> = undefined>(wrapped: TWrapped, default_?: TDefault | (() => TDefault)): OptionalSchemaAsync<TWrapped, TDefault> → function optionalAsync<TWrapped extends BaseSchema | BaseSchemaAsync, const TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined>(wrapped: TWrapped, default_: TDefault): OptionalSchemaAsync<TWrapped, TDefault>
  • changed: function partial<TSchema extends ObjectSchema<any, any>, TRest extends BaseSchema | undefined>(schema: TSchema, rest: TRest, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<PartialObjectEntries<TSchema['entries']>, TRest>>): ObjectSchema<PartialObjectEntries<TSchema['entries']>, TRest> → function partial<TSchema extends ObjectSchema<any, any>, TRest extends BaseSchema | undefined>(schema: TSchema, rest: TRest, message?: ErrorMessage, pipe?: Pipe<ObjectOutput<PartialObjectEntries<TSchema['entries']>, TRest>>): ObjectSchema<PartialObjectEntries<TSchema['entries']>, TRest>
  • changed: function partial<TSchema extends ObjectSchema<any, any>>(schema: TSchema, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<PartialObjectEntries<TSchema['entries']>, undefined>>): ObjectSchema<PartialObjectEntries<TSchema['entries']>> → function partial<TSchema extends ObjectSchema<any, any>>(schema: TSchema, message?: ErrorMessage, pipe?: Pipe<ObjectOutput<PartialObjectEntries<TSchema['entries']>, undefined>>): ObjectSchema<PartialObjectEntries<TSchema['entries']>>
  • changed: function partialAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>, TRest extends BaseSchema | undefined>(schema: TSchema, rest: TRest, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<PartialObjectEntriesAsync<TSchema['entries']>, TRest>>): ObjectSchemaAsync<PartialObjectEntriesAsync<TSchema['entries']>, TRest> → function partialAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>, TRest extends BaseSchema | undefined>(schema: TSchema, rest: TRest, message?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<PartialObjectEntriesAsync<TSchema['entries']>, TRest>>): ObjectSchemaAsync<PartialObjectEntriesAsync<TSchema['entries']>, TRest>
  • changed: function partialAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>>(schema: TSchema, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<PartialObjectEntriesAsync<TSchema['entries']>, undefined>>): ObjectSchemaAsync<PartialObjectEntriesAsync<TSchema['entries']>> → function partialAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>>(schema: TSchema, message?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<PartialObjectEntriesAsync<TSchema['entries']>, undefined>>): ObjectSchemaAsync<PartialObjectEntriesAsync<TSchema['entries']>>
  • changed: function pick<TSchema extends ObjectSchema<any, any>, TKeys extends (keyof TSchema['entries'])[], TRest extends BaseSchema | undefined>(schema: TSchema, keys: TKeys, rest: TRest, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<Pick<TSchema['entries'], TKeys[number]>, TRest>>): ObjectSchema<Pick<TSchema['entries'], TKeys[number]>, TRest> → function pick<TSchema extends ObjectSchema<any, any>, TKeys extends (keyof TSchema['entries'])[], TRest extends BaseSchema | undefined>(schema: TSchema, keys: TKeys, rest: TRest, message?: ErrorMessage, pipe?: Pipe<ObjectOutput<Pick<TSchema['entries'], TKeys[number]>, TRest>>): ObjectSchema<Pick<TSchema['entries'], TKeys[number]>, TRest>
  • changed: function pick<TSchema extends ObjectSchema<any, any>, TKeys extends (keyof TSchema['entries'])[]>(schema: TSchema, keys: TKeys, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<Pick<TSchema['entries'], TKeys[number]>, undefined>>): ObjectSchema<Pick<TSchema['entries'], TKeys[number]>> → function pick<TSchema extends ObjectSchema<any, any>, TKeys extends (keyof TSchema['entries'])[]>(schema: TSchema, keys: TKeys, message?: ErrorMessage, pipe?: Pipe<ObjectOutput<Pick<TSchema['entries'], TKeys[number]>, undefined>>): ObjectSchema<Pick<TSchema['entries'], TKeys[number]>>
  • changed: function pickAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>, TKeys extends (keyof TSchema['entries'])[], TRest extends BaseSchema | BaseSchemaAsync | undefined>(schema: TSchema, keys: TKeys, rest: TRest, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Pick<TSchema['entries'], TKeys[number]>, TRest>>): ObjectSchemaAsync<Pick<TSchema['entries'], TKeys[number]>, TRest> → function pickAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>, TKeys extends (keyof TSchema['entries'])[], TRest extends BaseSchema | BaseSchemaAsync | undefined>(schema: TSchema, keys: TKeys, rest: TRest, message?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Pick<TSchema['entries'], TKeys[number]>, TRest>>): ObjectSchemaAsync<Pick<TSchema['entries'], TKeys[number]>, TRe…
  • changed: function pickAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>, TKeys extends (keyof TSchema['entries'])[]>(schema: TSchema, keys: TKeys, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Pick<TSchema['entries'], TKeys[number]>, undefined>>): ObjectSchemaAsync<Pick<TSchema['entries'], TKeys[number]>> → function pickAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>, TKeys extends (keyof TSchema['entries'])[]>(schema: TSchema, keys: TKeys, message?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Pick<TSchema['entries'], TKeys[number]>, undefined>>): ObjectSchemaAsync<Pick<TSchema['entries'], TKeys[number]>>
  • changed: function picklist<TOption extends string, TOptions extends PicklistOptions<TOption>>(options: TOptions, error?: ErrorMessage): PicklistSchema<TOptions> → function picklist<TOption extends string, TOptions extends PicklistOptions<TOption>>(options: TOptions, message?: ErrorMessage): PicklistSchema<TOptions>
  • changed: function picklistAsync<TOption extends string, TOptions extends PicklistOptions<TOption>>(options: TOptions, error?: ErrorMessage): PicklistSchemaAsync<TOptions> → function picklistAsync<TOption extends string, TOptions extends PicklistOptions<TOption>>(options: TOptions, message?: ErrorMessage): PicklistSchemaAsync<TOptions>
  • changed: function record<TKey extends RecordKey, TValue extends BaseSchema>(key: TKey, value: TValue, error?: ErrorMessage, pipe?: Pipe<RecordOutput<TKey, TValue>>): RecordSchema<TKey, TValue> → function record<TKey extends RecordKey, TValue extends BaseSchema>(key: TKey, value: TValue, message?: ErrorMessage, pipe?: Pipe<RecordOutput<TKey, TValue>>): RecordSchema<TKey, TValue>
  • changed: function record<TValue extends BaseSchema>(value: TValue, error?: ErrorMessage, pipe?: Pipe<RecordOutput<StringSchema, TValue>>): RecordSchema<StringSchema, TValue> → function record<TValue extends BaseSchema>(value: TValue, message?: ErrorMessage, pipe?: Pipe<RecordOutput<StringSchema, TValue>>): RecordSchema<StringSchema, TValue>
  • changed: function recordAsync<TKey extends RecordKeyAsync, TValue extends BaseSchema | BaseSchemaAsync>(key: TKey, value: TValue, error?: ErrorMessage, pipe?: PipeAsync<RecordOutput<TKey, TValue>>): RecordSchemaAsync<TKey, TValue> → function recordAsync<TKey extends RecordKeyAsync, TValue extends BaseSchema | BaseSchemaAsync>(key: TKey, value: TValue, message?: ErrorMessage, pipe?: PipeAsync<RecordOutput<TKey, TValue>>): RecordSchemaAsync<TKey, TValue>
  • changed: function recordAsync<TValue extends BaseSchema | BaseSchemaAsync>(value: TValue, error?: ErrorMessage, pipe?: PipeAsync<RecordOutput<StringSchema, TValue>>): RecordSchemaAsync<StringSchema, TValue> → function recordAsync<TValue extends BaseSchema | BaseSchemaAsync>(value: TValue, message?: ErrorMessage, pipe?: PipeAsync<RecordOutput<StringSchema, TValue>>): RecordSchemaAsync<StringSchema, TValue>
  • changed: function regex<TInput extends string>(requirement: RegExp, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function regex<TInput extends string>(requirement: RegExp, message?: ErrorMessage): RegexValidation<TInput>
  • changed: function required<TSchema extends ObjectSchema<any, any>, TRest extends BaseSchema | undefined>(schema: TSchema, rest: TRest, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<Required$1<TSchema['entries']>, TRest>>): ObjectSchema<Required$1<TSchema['entries']>, TRest> → function required<TSchema extends ObjectSchema<any, any>, TRest extends BaseSchema | undefined>(schema: TSchema, rest: TRest, message?: ErrorMessage, pipe?: Pipe<ObjectOutput<Required$1<TSchema['entries']>, TRest>>): ObjectSchema<Required$1<TSchema['entries']>, TRest>
  • changed: function required<TSchema extends ObjectSchema<any, any>>(schema: TSchema, error?: ErrorMessage, pipe?: Pipe<ObjectOutput<Required$1<TSchema['entries']>, undefined>>): ObjectSchema<Required$1<TSchema['entries']>> → function required<TSchema extends ObjectSchema<any, any>>(schema: TSchema, message?: ErrorMessage, pipe?: Pipe<ObjectOutput<Required$1<TSchema['entries']>, undefined>>): ObjectSchema<Required$1<TSchema['entries']>>
  • changed: function requiredAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>, TRest extends BaseSchema | BaseSchemaAsync | undefined>(schema: TSchema, rest: TRest, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Required<TSchema['entries']>, TRest>>): ObjectSchemaAsync<Required<TSchema['entries']>, TRest> → function requiredAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>, TRest extends BaseSchema | BaseSchemaAsync | undefined>(schema: TSchema, rest: TRest, message?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Required<TSchema['entries']>, TRest>>): ObjectSchemaAsync<Required<TSchema['entries']>, TRest>
  • changed: function requiredAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>>(schema: TSchema, error?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Required<TSchema['entries']>, undefined>>): ObjectSchemaAsync<Required<TSchema['entries']>> → function requiredAsync<TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>>(schema: TSchema, message?: ErrorMessage, pipe?: PipeAsync<ObjectOutput<Required<TSchema['entries']>, undefined>>): ObjectSchemaAsync<Required<TSchema['entries']>>
  • changed: function safeInteger<TInput extends number>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function safeInteger<TInput extends number>(message?: ErrorMessage): SafeIntegerValidation<TInput>
  • changed: function set<TValue extends BaseSchema>(value: TValue, error?: ErrorMessage, pipe?: Pipe<SetOutput<TValue>>): SetSchema<TValue> → function set<TValue extends BaseSchema>(value: TValue, message?: ErrorMessage, pipe?: Pipe<SetOutput<TValue>>): SetSchema<TValue>
  • changed: function setAsync<TValue extends BaseSchema | BaseSchemaAsync>(value: TValue, error?: ErrorMessage, pipe?: PipeAsync<SetOutput<TValue>>): SetSchemaAsync<TValue> → function setAsync<TValue extends BaseSchema | BaseSchemaAsync>(value: TValue, message?: ErrorMessage, pipe?: PipeAsync<SetOutput<TValue>>): SetSchemaAsync<TValue>
  • changed: function size<TInput extends Map<any, any> | Set<any> | Blob>(requirement: number, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function size<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number>(requirement: TRequirement, message?: ErrorMessage): SizeValidation<TInput, TRequirement>
  • changed: function special<TInput>(check: (input: unknown) => boolean, error?: ErrorMessage, pipe?: Pipe<TInput>): SpecialSchema<TInput> → function special<TInput>(check: (input: unknown) => boolean, message?: ErrorMessage, pipe?: Pipe<TInput>): SpecialSchema<TInput>
  • changed: function specialAsync<TInput>(check: (input: unknown) => boolean | Promise<boolean>, error?: ErrorMessage, pipe?: PipeAsync<TInput>): SpecialSchemaAsync<TInput> → function specialAsync<TInput>(check: (input: unknown) => boolean | Promise<boolean>, message?: ErrorMessage, pipe?: PipeAsync<TInput>): SpecialSchemaAsync<TInput>
  • changed: function startsWith<TInput extends string>(requirement: string, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function startsWith<TInput extends string, TRequirement extends string>(requirement: TRequirement, message?: ErrorMessage): StartsWithValidation<TInput, TRequirement>
  • changed: function strict<TSchema extends ObjectSchema<ObjectEntries, undefined>>(schema: TSchema, error?: ErrorMessage): TSchema → function strict<TSchema extends ObjectSchema<ObjectEntries, undefined>>(schema: TSchema, message?: ErrorMessage): TSchema
  • changed: function strictAsync<TSchema extends ObjectSchemaAsync<ObjectEntriesAsync, undefined>>(schema: TSchema, error?: ErrorMessage): TSchema → function strictAsync<TSchema extends ObjectSchemaAsync<ObjectEntriesAsync, undefined>>(schema: TSchema, message?: ErrorMessage): TSchema
  • changed: function string(error?: ErrorMessage, pipe?: Pipe<string>): StringSchema → function string(message?: ErrorMessage, pipe?: Pipe<string>): StringSchema
  • changed: function stringAsync(error?: ErrorMessage, pipe?: PipeAsync<string>): StringSchemaAsync → function stringAsync(message?: ErrorMessage, pipe?: PipeAsync<string>): StringSchemaAsync
  • changed: function symbol(error?: ErrorMessage): SymbolSchema → function symbol(message?: ErrorMessage): SymbolSchema
  • changed: function symbolAsync(error?: ErrorMessage): SymbolSchemaAsync → function symbolAsync(message?: ErrorMessage): SymbolSchemaAsync
  • changed: function toCustom<TInput>(action: (input: TInput) => TInput): (input: TInput) => PipeResult<TInput> → function toCustom<TInput>(action: (input: TInput) => TInput): ToCustomTransformation<TInput>
  • changed: function toCustomAsync<TInput>(action: (input: TInput) => TInput | Promise<TInput>): (input: TInput) => Promise<PipeResult<TInput>> → function toCustomAsync<TInput>(action: (input: TInput) => TInput | Promise<TInput>): ToCustomTransformationAsync<TInput>
  • changed: function toLowerCase(): (input: string) => PipeResult<string> → function toLowerCase(): ToLowerCaseTransformation
  • changed: function toMaxValue<TInput extends string | number | bigint | Date, TRequirement extends TInput>(requirement: TRequirement): (input: TInput) => PipeResult<TInput> → function toMaxValue<TInput extends string | number | bigint | Date, TRequirement extends TInput>(requirement: TRequirement): ToMaxValueTransformation<TInput, TRequirement>
  • changed: function toMinValue<TInput extends string | number | bigint | Date, TRequirement extends TInput>(requirement: TRequirement): (input: TInput) => PipeResult<TInput> → function toMinValue<TInput extends string | number | bigint | Date, TRequirement extends TInput>(requirement: TRequirement): ToMinValueTransformation<TInput, TRequirement>
  • changed: function toTrimmed(): (input: string) => PipeResult<string> → function toTrimmed(): ToTrimmedTransformation
  • changed: function toTrimmedEnd(): (input: string) => PipeResult<string> → function toTrimmedEnd(): ToTrimmedEndTransformation
  • changed: function toTrimmedStart(): (input: string) => PipeResult<string> → function toTrimmedStart(): ToTrimmedStartTransformation
  • changed: function toUpperCase(): (input: string) => PipeResult<string> → function toUpperCase(): ToUpperCaseTransformation
  • changed: function tuple<TItems extends TupleItems, TRest extends BaseSchema | undefined>(items: TItems, rest: TRest, error?: ErrorMessage, pipe?: Pipe<TupleOutput<TItems, TRest>>): TupleSchema<TItems, TRest> → function tuple<TItems extends TupleItems, TRest extends BaseSchema | undefined>(items: TItems, rest: TRest, message?: ErrorMessage, pipe?: Pipe<TupleOutput<TItems, TRest>>): TupleSchema<TItems, TRest>
  • changed: function tuple<TItems extends TupleItems>(items: TItems, error?: ErrorMessage, pipe?: Pipe<TupleOutput<TItems, undefined>>): TupleSchema<TItems> → function tuple<TItems extends TupleItems>(items: TItems, message?: ErrorMessage, pipe?: Pipe<TupleOutput<TItems, undefined>>): TupleSchema<TItems>
  • changed: function tupleAsync<TItems extends TupleItemsAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined>(items: TItems, rest: TRest, error?: ErrorMessage, pipe?: PipeAsync<TupleOutput<TItems, TRest>>): TupleSchemaAsync<TItems, TRest> → function tupleAsync<TItems extends TupleItemsAsync, TRest extends BaseSchema | BaseSchemaAsync | undefined>(items: TItems, rest: TRest, message?: ErrorMessage, pipe?: PipeAsync<TupleOutput<TItems, TRest>>): TupleSchemaAsync<TItems, TRest>
  • changed: function tupleAsync<TItems extends TupleItemsAsync>(items: TItems, error?: ErrorMessage, pipe?: PipeAsync<TupleOutput<TItems, undefined>>): TupleSchemaAsync<TItems> → function tupleAsync<TItems extends TupleItemsAsync>(items: TItems, message?: ErrorMessage, pipe?: PipeAsync<TupleOutput<TItems, undefined>>): TupleSchemaAsync<TItems>
  • changed: function ulid<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function ulid<TInput extends string>(message?: ErrorMessage): UlidValidation<TInput>
  • changed: function undefinedAsync(error?: ErrorMessage): UndefinedSchemaAsync → function undefinedAsync(message?: ErrorMessage): UndefinedSchemaAsync
  • changed: function undefined_(error?: ErrorMessage): UndefinedSchema → function undefined_(message?: ErrorMessage): UndefinedSchema
  • changed: function union<TOptions extends UnionOptions>(options: TOptions, error?: ErrorMessage): UnionSchema<TOptions> → function union<TOptions extends UnionOptions>(options: TOptions, message?: ErrorMessage): UnionSchema<TOptions>
  • changed: function unionAsync<TOptions extends UnionOptionsAsync>(options: TOptions, error?: ErrorMessage): UnionSchemaAsync<TOptions> → function unionAsync<TOptions extends UnionOptionsAsync>(options: TOptions, message?: ErrorMessage): UnionSchemaAsync<TOptions>
  • changed: function url<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function url<TInput extends string>(message?: ErrorMessage): UrlValidation<TInput>
  • changed: function uuid<TInput extends string>(error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function uuid<TInput extends string>(message?: ErrorMessage): UuidValidation<TInput>
  • changed: function value<TInput extends string | number | bigint, TRequirement extends TInput>(requirement: TRequirement, error?: ErrorMessage): (input: TInput) => PipeResult<TInput> → function value<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput>(requirement: TRequirement, message?: ErrorMessage): ValueValidation<TInput, TRequirement>
  • changed: function variant<TKey extends string, TOptions extends VariantOptions<TKey>>(key: TKey, options: TOptions, error?: ErrorMessage): VariantSchema<TKey, TOptions> → function variant<TKey extends string, TOptions extends VariantOptions<TKey>>(key: TKey, options: TOptions, message?: ErrorMessage): VariantSchema<TKey, TOptions>
  • changed: function variantAsync<TKey extends string, TOptions extends VariantOptionsAsync<TKey>>(key: TKey, options: TOptions, error?: ErrorMessage): VariantSchemaAsync<TKey, TOptions> → function variantAsync<TKey extends string, TOptions extends VariantOptionsAsync<TKey>>(key: TKey, options: TOptions, message?: ErrorMessage): VariantSchemaAsync<TKey, TOptions>
  • changed: function voidAsync(error?: ErrorMessage): VoidSchemaAsync → function voidAsync(message?: ErrorMessage): VoidSchemaAsync
  • changed: function void_(error?: ErrorMessage): VoidSchema → function void_(message?: ErrorMessage): VoidSchema
  • changed: type AnySchema<TOutput = any> = BaseSchema<any, TOutput> & { type: 'any' } → type AnySchema<TOutput = any> = BaseSchema<any, TOutput> & { type: 'any'; pipe: Pipe<any> | undefined }
  • changed: type AnySchemaAsync<TOutput = any> = BaseSchemaAsync<any, TOutput> & { type: 'any' } → type AnySchemaAsync<TOutput = any> = BaseSchemaAsync<any, TOutput> & { type: 'any'; pipe: PipeAsync<any> | undefined }
  • changed: type ArrayPathItem = { type: 'array'; input: any[]; key: number; value: any } → type ArrayPathItem = { type: 'array'; input: unknown[]; key: number; value: unknown }
  • changed: type ArraySchema<TItem extends BaseSchema, TOutput = Output<TItem>[]> = BaseSchema<Input<TItem>[], TOutput> & { type: 'array'; item: TItem } → type ArraySchema<TItem extends BaseSchema, TOutput = Output<TItem>[]> = BaseSchema<Input<TItem>[], TOutput> & { type: 'array'; item: TItem; message: ErrorMessage; pipe: Pipe<Output<TItem>[]> | undefined }
  • changed: type ArraySchemaAsync<TItem extends BaseSchema | BaseSchemaAsync, TOutput = Output<TItem>[]> = BaseSchemaAsync<Input<TItem>[], TOutput> & { type: 'array'; item: TItem } → type ArraySchemaAsync<TItem extends BaseSchema | BaseSchemaAsync, TOutput = Output<TItem>[]> = BaseSchemaAsync<Input<TItem>[], TOutput> & { type: 'array'; item: TItem; message: ErrorMessage; pipe: PipeAsync<Output<TItem>[]> | undefined }
  • changed: type BigintSchema<TOutput = bigint> = BaseSchema<bigint, TOutput> & { type: 'bigint' } → type BigintSchema<TOutput = bigint> = BaseSchema<bigint, TOutput> & { type: 'bigint'; message: ErrorMessage; pipe: Pipe<bigint> | undefined }
  • changed: type BigintSchemaAsync<TOutput = bigint> = BaseSchemaAsync<bigint, TOutput> & { type: 'bigint' } → type BigintSchemaAsync<TOutput = bigint> = BaseSchemaAsync<bigint, TOutput> & { type: 'bigint'; message: ErrorMessage; pipe: PipeAsync<bigint> | undefined }
  • changed: type BlobSchema<TOutput = Blob> = BaseSchema<Blob, TOutput> & { type: 'blob' } → type BlobSchema<TOutput = Blob> = BaseSchema<Blob, TOutput> & { type: 'blob'; message: ErrorMessage; pipe: Pipe<Blob> | undefined }
  • changed: type BlobSchemaAsync<TOutput = Blob> = BaseSchemaAsync<Blob, TOutput> & { type: 'blob' } → type BlobSchemaAsync<TOutput = Blob> = BaseSchemaAsync<Blob, TOutput> & { type: 'blob'; message: ErrorMessage; pipe: PipeAsync<Blob> | undefined }
  • changed: type BooleanSchema<TOutput = boolean> = BaseSchema<boolean, TOutput> & { type: 'boolean' } → type BooleanSchema<TOutput = boolean> = BaseSchema<boolean, TOutput> & { type: 'boolean'; message: ErrorMessage; pipe: Pipe<boolean> | undefined }
  • changed: type BooleanSchemaAsync<TOutput = boolean> = BaseSchemaAsync<boolean, TOutput> & { type: 'boolean' } → type BooleanSchemaAsync<TOutput = boolean> = BaseSchemaAsync<boolean, TOutput> & { type: 'boolean'; message: ErrorMessage; pipe: PipeAsync<boolean> | undefined }
  • changed: type DateSchema<TOutput = Date> = BaseSchema<Date, TOutput> & { type: 'date' } → type DateSchema<TOutput = Date> = BaseSchema<Date, TOutput> & { type: 'date'; message: ErrorMessage; pipe: Pipe<Date> | undefined }
  • changed: type DateSchemaAsync<TOutput = Date> = BaseSchemaAsync<Date, TOutput> & { type: 'date' } → type DateSchemaAsync<TOutput = Date> = BaseSchemaAsync<Date, TOutput> & { type: 'date'; message: ErrorMessage; pipe: PipeAsync<Date> | undefined }
  • changed: type DefaultValue<TSchema extends SchemaWithMaybeDefault | SchemaWithMaybeDefaultAsync> = TSchema['getDefault'] extends () => Output<TSchema> ? ReturnType<TSchema['getDefault']> : TSchema['getDefault'] extends () => Promise<Output<TSchema>> ? Awaite… → type DefaultValue<TSchema extends SchemaWithMaybeDefault | SchemaWithMaybeDefaultAsync> = TSchema['default'] extends Output<TSchema> | undefined ? TSchema['default'] : TSchema['default'] extends () => Output<TSchema> | undefined ? ReturnType<TSchema…
  • changed: type DefaultValues<TSchema extends BaseSchema | BaseSchemaAsync> = TSchema extends OptionalSchema<any, infer TDefault> | OptionalSchemaAsync<any, infer TDefault> | NullableSchema<any, infer TDefault> | NullableSchemaAsync<any,… → type DefaultValues<TSchema extends BaseSchema | BaseSchemaAsync> = TSchema extends ObjectSchema<infer TEntries extends ObjectEntries> ? { [TKey in keyof TEntries]: DefaultValues<TEntries[TKey]> } : TSchema extends ObjectSchema…
  • changed: type EnumSchema<TEnum extends Enum, TOutput = TEnum[keyof TEnum]> = BaseSchema<TEnum[keyof TEnum], TOutput> & { type: 'enum'; enum: TEnum } → type EnumSchema<TEnum extends Enum, TOutput = TEnum[keyof TEnum]> = BaseSchema<TEnum[keyof TEnum], TOutput> & { type: 'enum'; enum: TEnum; message: ErrorMessage }
  • changed: type EnumSchemaAsync<TEnum extends Enum, TOutput = TEnum[keyof TEnum]> = BaseSchemaAsync<TEnum[keyof TEnum], TOutput> & { type: 'enum'; enum: TEnum } → type EnumSchemaAsync<TEnum extends Enum, TOutput = TEnum[keyof TEnum]> = BaseSchemaAsync<TEnum[keyof TEnum], TOutput> & { type: 'enum'; enum: TEnum; message: ErrorMessage }
  • changed: type FallbackValue<TSchema extends SchemaWithMaybeFallback | SchemaWithMaybeFallbackAsync> = TSchema extends SchemaWithFallback<BaseSchema, infer TFallback> | SchemaWithFallbackAsync<BaseSchemaAsync, infer TFallback> ? TFallback : undefined → type FallbackValue<TSchema extends SchemaWithMaybeFallback | SchemaWithMaybeFallbackAsync> = TSchema['fallback'] extends Output<TSchema> ? TSchema['fallback'] : TSchema['fallback'] extends () => Output<TSchema> ? ReturnType<TSchema['fallback']> : TSche…
  • changed: type FallbackValues<TSchema extends SchemaWithMaybeFallback<BaseSchema | ObjectSchema<ObjectEntries, any> | TupleSchema<TupleItems, any>> | SchemaWithMaybeFallbackAsync<BaseSchemaAsync | ObjectSchemaAsync<ObjectEntriesAsync, any> | TupleSchemaAsync<TupleItemsAsync, any>>> = TSchema extends SchemaWithFallback<BaseSchema, infer TFallback> | SchemaWithFallbackAsync<BaseSchemaAsync, infer TFallback> ? TFallback : TSchema extends Objec… → type FallbackValues<TSchema extends SchemaWithMaybeFallback<BaseSchema | ObjectSchema<ObjectEntries, any> | TupleSchema<TupleItems, any>> | SchemaWithMaybeFallbackAsync<BaseSchemaAsync | ObjectSchemaAsync<ObjectEntriesAsync, any> | TupleSchemaAsync<TupleItemsAsync, any>>> = TSchema extends ObjectSchema<infer TEntries extends ObjectEntries> ? { [TKey in keyof TEntries]: FallbackValues<TEntries[TKey]> } : TSchema extends ObjectSchem…
  • changed: type InstanceSchema<TClass extends Class, TOutput = InstanceType<TClass>> = BaseSchema<InstanceType<TClass>, TOutput> & { type: 'instance'; class: TClass } → type InstanceSchema<TClass extends Class, TOutput = InstanceType<TClass>> = BaseSchema<InstanceType<TClass>, TOutput> & { type: 'instance'; class: TClass; message: ErrorMessage; pipe: Pipe<InstanceType<TClass>> | undefined }
  • changed: type InstanceSchemaAsync<TClass extends Class, TOutput = InstanceType<TClass>> = BaseSchemaAsync<InstanceType<TClass>, TOutput> & { type: 'instance'; class: TClass } → type InstanceSchemaAsync<TClass extends Class, TOutput = InstanceType<TClass>> = BaseSchemaAsync<InstanceType<TClass>, TOutput> & { type: 'instance'; class: TClass; message: ErrorMessage; pipe: PipeAsync<InstanceType<TClass>> | undefined }
  • changed: type IntersectSchema<TOptions extends IntersectOptions, TOutput = IntersectOutput<TOptions>> = BaseSchema<IntersectInput<TOptions>, TOutput> & { type: 'intersect'; options: TOptions } → type IntersectSchema<TOptions extends IntersectOptions, TOutput = IntersectOutput<TOptions>> = BaseSchema<IntersectInput<TOptions>, TOutput> & { type: 'intersect'; options: TOptions; message: ErrorMessage }
  • changed: type Issue = { reason: IssueReason; validation: string; origin: IssueOrigin; message: string; input: any; path?: PathItem[]; issues?: Issues; abortEarly?: boolean; abortPip… → type Issue = { reason: IssueReason; validation: string; origin: IssueOrigin; message: string; input: unknown; requirement?: unknown; path?: PathItem[]; issues?: Issues; abo…
  • changed: type LiteralSchema<TLiteral extends Literal, TOutput = TLiteral> = BaseSchema<TLiteral, TOutput> & { type: 'literal'; literal: TLiteral } → type LiteralSchema<TLiteral extends Literal, TOutput = TLiteral> = BaseSchema<TLiteral, TOutput> & { type: 'literal'; literal: TLiteral; message: ErrorMessage }
  • changed: type LiteralSchemaAsync<TLiteral extends Literal, TOutput = TLiteral> = BaseSchemaAsync<TLiteral, TOutput> & { type: 'literal'; literal: TLiteral } → type LiteralSchemaAsync<TLiteral extends Literal, TOutput = TLiteral> = BaseSchemaAsync<TLiteral, TOutput> & { type: 'literal'; literal: TLiteral; message: ErrorMessage }
  • changed: type MapPathItem = { type: 'map'; input: Map<any, any>; key: any; value: any } → type MapPathItem = { type: 'map'; input: Map<unknown, unknown>; key: unknown; value: unknown }
  • changed: type MapSchema<TKey extends BaseSchema, TValue extends BaseSchema, TOutput = MapOutput<TKey, TValue>> = BaseSchema<MapInput<TKey, TValue>, TOutput> & { type: 'map'; key: TKey; value: TValue } → 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; pipe: Pipe<MapOutput<TKey, TValue>> | undefined }
  • changed: 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 } → 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; pipe: PipeAsync<MapOutput<TKey, TValue>> | u…
  • changed: type NanSchema<TOutput = number> = BaseSchema<number, TOutput> & { type: 'nan' } → type NanSchema<TOutput = number> = BaseSchema<number, TOutput> & { type: 'nan'; message: ErrorMessage }
  • changed: type NanSchemaAsync<TOutput = number> = BaseSchemaAsync<number, TOutput> & { type: 'nan' } → type NanSchemaAsync<TOutput = number> = BaseSchemaAsync<number, TOutput> & { type: 'nan'; message: ErrorMessage }
  • changed: type NeverSchema = BaseSchema<never> & { type: 'never' } → type NeverSchema = BaseSchema<never> & { type: 'never'; message: ErrorMessage }
  • changed: type NeverSchemaAsync = BaseSchemaAsync<never> & { type: 'never' } → type NeverSchemaAsync = BaseSchemaAsync<never> & { type: 'never'; message: ErrorMessage }
  • changed: type NonNullableSchema<TWrapped extends BaseSchema, TOutput = NonNullable$1<Output<TWrapped>>> = BaseSchema<NonNullable$1<Input<TWrapped>>, TOutput> & { type: 'non_nullable'; wrapped: TWrapped } → type NonNullableSchema<TWrapped extends BaseSchema, TOutput = NonNullable$1<Output<TWrapped>>> = BaseSchema<NonNullable$1<Input<TWrapped>>, TOutput> & { type: 'non_nullable'; wrapped: TWrapped; message: ErrorMessage }
  • changed: type NonNullableSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonNullable$1<Output<TWrapped>>> = BaseSchemaAsync<NonNullable$1<Input<TWrapped>>, TOutput> & { type: 'non_nullable'; wrapped: TWrapped } → type NonNullableSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonNullable$1<Output<TWrapped>>> = BaseSchemaAsync<NonNullable$1<Input<TWrapped>>, TOutput> & { type: 'non_nullable'; wrapped: TWrapped; message: ErrorMessage }
  • changed: type NonNullishSchema<TWrapped extends BaseSchema, TOutput = NonNullish<Output<TWrapped>>> = BaseSchema<NonNullish<Input<TWrapped>>, TOutput> & { type: 'non_nullish'; wrapped: TWrapped } → type NonNullishSchema<TWrapped extends BaseSchema, TOutput = NonNullish<Output<TWrapped>>> = BaseSchema<NonNullish<Input<TWrapped>>, TOutput> & { type: 'non_nullish'; wrapped: TWrapped; message: ErrorMessage }
  • changed: type NonNullishSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonNullish<Output<TWrapped>>> = BaseSchemaAsync<NonNullish<Input<TWrapped>>, TOutput> & { type: 'non_nullish'; wrapped: TWrapped } → type NonNullishSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonNullish<Output<TWrapped>>> = BaseSchemaAsync<NonNullish<Input<TWrapped>>, TOutput> & { type: 'non_nullish'; wrapped: TWrapped; message: ErrorMessage }
  • changed: type NonOptionalSchema<TWrapped extends BaseSchema, TOutput = NonOptional<Output<TWrapped>>> = BaseSchema<NonOptional<Input<TWrapped>>, TOutput> & { type: 'non_optional'; wrapped: TWrapped } → type NonOptionalSchema<TWrapped extends BaseSchema, TOutput = NonOptional<Output<TWrapped>>> = BaseSchema<NonOptional<Input<TWrapped>>, TOutput> & { type: 'non_optional'; wrapped: TWrapped; message: ErrorMessage }
  • changed: type NonOptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonOptional<Output<TWrapped>>> = BaseSchemaAsync<NonOptional<Input<TWrapped>>, TOutput> & { type: 'non_optional'; wrapped: TWrapped } → type NonOptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TOutput = NonOptional<Output<TWrapped>>> = BaseSchemaAsync<NonOptional<Input<TWrapped>>, TOutput> & { type: 'non_optional'; wrapped: TWrapped; message: ErrorMessage }
  • changed: type NullSchema<TOutput = null> = BaseSchema<null, TOutput> & { type: 'null' } → type NullSchema<TOutput = null> = BaseSchema<null, TOutput> & { type: 'null'; message: ErrorMessage }
  • changed: type NullSchemaAsync<TOutput = null> = BaseSchemaAsync<null, TOutput> & { type: 'null' } → type NullSchemaAsync<TOutput = null> = BaseSchemaAsync<null, TOutput> & { type: 'null'; message: ErrorMessage }
  • changed: type NullableSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | undefined = undefined, TOutput = TDefault extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchema<Input<TWrapped> | null, TOutput> & { type: 'nullable'; wrapped: TWrapped; getDefault: () => TDefault } → type NullableSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchema<Input<TWrapped> | null, TOutput> & { type: 'nullable'; wrapped: TWrapped; default: TDefault }
  • changed: type NullableSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | undefined | Promise<Input<TWrapped> | undefined> = undefined, TOutput = Awaited<TDefault> extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchemaAsync<Input<TWrapped> | null, TOutput> & { type: 'nullable'; wrapped: TWrapped; getDefault: () => Promise<TDefault> } → type NullableSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = Awaited<TDefault> extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null> = BaseSchemaAsync<Input<TWrapped> | null, TOutput> & { type: 'nullable'; wrapped: TWrapped; default: TDefault }
  • changed: type NullishSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | undefined = undefined, TOutput = TDefault extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null | undefined> = BaseSchema<Input<TWrapped> | null | undefined, TOutput> & { type: 'nullish'; wrapped: TWrapped; getDefault: () => TDefault } → type NullishSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null | undefined> = BaseSchema<Input<TWrapped> | null | undefined, TOutput> & { type: 'nullish'; wrapped: TWrapped; default: TDefault }
  • changed: type NullishSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | undefined | Promise<Input<TWrapped> | undefined> = undefined, TOutput = Awaited<TDefault> extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null | undefined> = BaseSchemaAsync<Input<TWrapped> | null | undefined, TOutput> & { type: 'nullish'; wrapped: TWrapped; getDefault: () => Promise<TDefault> } → type NullishSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = Awaited<TDefault> extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | null | undefined> = BaseSchemaAsync<Input<TWrapped> | null | undefined, TOutput> & { type: 'nullish'; wrapped: TWrapped; default: TDefault }
  • changed: type NumberSchema<TOutput = number> = BaseSchema<number, TOutput> & { type: 'number' } → type NumberSchema<TOutput = number> = BaseSchema<number, TOutput> & { type: 'number'; message: ErrorMessage; pipe: Pipe<number> | undefined }
  • changed: type NumberSchemaAsync<TOutput = number> = BaseSchemaAsync<number, TOutput> & { type: 'number' } → type NumberSchemaAsync<TOutput = number> = BaseSchemaAsync<number, TOutput> & { type: 'number'; message: ErrorMessage; pipe: PipeAsync<number> | undefined }
  • changed: type ObjectPathItem = { type: 'object'; input: Record<string, any>; key: string; value: any } → type ObjectPathItem = { type: 'object'; input: Record<string, unknown>; key: string; value: unknown }
  • changed: 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 } → 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; pipe: Pipe<ObjectOutput<TEntries,…
  • changed: 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 } → 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; pipe: PipeAsync<ObjectOutput<…
  • changed: type OptionalSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | undefined = undefined, TOutput = TDefault extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchema<Input<TWrapped> | undefined, TOutput> & { type: 'optional'; wrapped: TWrapped; getDefault: () => TDefault } → type OptionalSchema<TWrapped extends BaseSchema, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | undefined) | undefined = undefined, TOutput = TDefault extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchema<Input<TWrapped> | undefined, TOutput> & { type: 'optional'; wrapped: TWrapped; default: TDefault }
  • changed: type OptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | undefined | Promise<Input<TWrapped> | undefined> = undefined, TOutput = Awaited<TDefault> extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchemaAsync<Input<TWrapped> | undefined, TOutput> & { type: 'optional'; wrapped: TWrapped; getDefault: () => Promise<TDefault> } → type OptionalSchemaAsync<TWrapped extends BaseSchema | BaseSchemaAsync, TDefault extends Input<TWrapped> | (() => Input<TWrapped> | Promise<Input<TWrapped> | undefined> | undefined) | undefined = undefined, TOutput = Awaited<TDefault> extends Input<TWrapped> ? Output<TWrapped> : Output<TWrapped> | undefined> = BaseSchemaAsync<Input<TWrapped> | undefined, TOutput> & { type: 'optional'; wrapped: TWrapped; default: TDefault }
  • changed: type PicklistSchema<Toptions extends PicklistOptions, TOutput = Toptions[number]> = BaseSchema<Toptions[number], TOutput> & { type: 'picklist'; options: Toptions } → type PicklistSchema<TOptions extends PicklistOptions, TOutput = TOptions[number]> = BaseSchema<TOptions[number], TOutput> & { type: 'picklist'; options: TOptions; message: ErrorMessage }
  • changed: type PicklistSchemaAsync<TOptions extends PicklistOptions, TOutput = TOptions[number]> = BaseSchemaAsync<TOptions[number], TOutput> & { type: 'picklist'; options: TOptions } → type PicklistSchemaAsync<TOptions extends PicklistOptions, TOutput = TOptions[number]> = BaseSchemaAsync<TOptions[number], TOutput> & { type: 'picklist'; options: TOptions; message: ErrorMessage }
  • changed: type Pipe<TValue> = ((value: TValue) => PipeResult<TValue>)[] → type Pipe<TInput> = (BaseValidation<TInput> | BaseTransformation<TInput>)[]
  • changed: type PipeAsync<TValue> = ((value: TValue) => PipeResult<TValue> | Promise<PipeResult<TValue>>)[] → type PipeAsync<TInput> = (BaseValidation<TInput> | BaseValidationAsync<TInput> | BaseTransformation<TInput> | BaseTransformationAsync<TInput>)[]
  • changed: type PipeResult<TOutput> = { output: TOutput; issues?: undefined } | { output?: undefined; issues: Pick<Issue, 'validation' | 'message' | 'input' | 'path'>[] } → type PipeResult<TOutput> = { output: TOutput; issues?: undefined } | { output?: undefined; issues: Pick<Issue, 'validation' | 'message' | 'input' | 'requirement'>[] }
  • changed: type RecordPathItem = { type: 'record'; input: Record<string | number | symbol, any>; key: string | number | symbol; value: any } → type RecordPathItem = { type: 'record'; input: Record<string | number | symbol, unknown>; key: string | number | symbol; value: unknown }
  • changed: type RecordSchema<TKey extends RecordKey, TValue extends BaseSchema, TOutput = RecordOutput<TKey, TValue>> = BaseSchema<RecordInput<TKey, TValue>, TOutput> & { type: 'record'; key: TKey; value: TValue } → 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; pipe: Pipe<RecordOutput<TKey, TValue>> | un…
  • changed: type RecordSchemaAsync<TKey extends RecordKeyAsync, TValue extends BaseSchema | BaseSchemaAsync, TOutput = RecordOutput<TKey, TValue>> = BaseSchemaAsync<RecordInput<TKey, TValue>, TOutput> & { type: 'record'; key: TKey; value: TValue } → 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; pipe: PipeAsync<RecordOutput<TKey, TVa…
  • changed: type SchemaWithFallback<TSchema extends BaseSchema = BaseSchema, TFallback extends Output<TSchema> = Output<TSchema>> = TSchema & { getFallback: (info?: FallbackInfo) => TFallback } → type SchemaWithFallback<TSchema extends BaseSchema = BaseSchema, TFallback extends Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema>) = Output<TSchema>> = TSchema & { fallback: TFallback }
  • changed: type SchemaWithFallbackAsync<TSchema extends BaseSchemaAsync = BaseSchemaAsync, TFallback extends Output<TSchema> = Output<TSchema>> = TSchema & { getFallback: (info?: FallbackInfo) => Promise<TFallback> } → type SchemaWithFallbackAsync<TSchema extends BaseSchemaAsync = BaseSchemaAsync, TFallback extends Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema> | Promise<Output<TSchema>>) = Output<TSchema>> = TSchema & { fallback: TFallback }
  • changed: type SchemaWithMaybeDefault<TSchema extends BaseSchema = BaseSchema> = TSchema & { getDefault?: () => Output<TSchema> } → type SchemaWithMaybeDefault<TSchema extends BaseSchema = BaseSchema> = TSchema & { default?: Output<TSchema> | (() => Output<TSchema> | undefined) }
  • changed: type SchemaWithMaybeDefaultAsync<TSchema extends BaseSchemaAsync = BaseSchemaAsync> = TSchema & { getDefault?: () => Promise<Output<TSchema>> } → type SchemaWithMaybeDefaultAsync<TSchema extends BaseSchemaAsync = BaseSchemaAsync> = TSchema & { default?: Output<TSchema> | (() => Output<TSchema> | Promise<Output<TSchema> | undefined> | undefined) }
  • changed: type SchemaWithMaybeFallback<TSchema extends BaseSchema = BaseSchema> = TSchema & { getFallback?: (info?: FallbackInfo) => Output<TSchema> } → type SchemaWithMaybeFallback<TSchema extends BaseSchema = BaseSchema> = TSchema & { fallback?: Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema>) }
  • changed: type SchemaWithMaybeFallbackAsync<TSchema extends BaseSchemaAsync = BaseSchemaAsync> = TSchema & { getFallback?: (info?: FallbackInfo) => Promise<Output<TSchema>> } → type SchemaWithMaybeFallbackAsync<TSchema extends BaseSchemaAsync = BaseSchemaAsync> = TSchema & { fallback?: Output<TSchema> | ((info?: FallbackInfo) => Output<TSchema> | Promise<Output<TSchema>>) }
  • changed: type SetPathItem = { type: 'set'; input: Set<any>; key: number; value: any } → type SetPathItem = { type: 'set'; input: Set<unknown>; key: number; value: unknown }
  • changed: type SetSchema<TValue extends BaseSchema, TOutput = SetOutput<TValue>> = BaseSchema<SetInput<TValue>, TOutput> & { type: 'set'; value: TValue } → type SetSchema<TValue extends BaseSchema, TOutput = SetOutput<TValue>> = BaseSchema<SetInput<TValue>, TOutput> & { type: 'set'; value: TValue; message: ErrorMessage; pipe: Pipe<SetOutput<TValue>> | undefined }
  • changed: type SetSchemaAsync<TValue extends BaseSchema | BaseSchemaAsync, TOutput = SetOutput<TValue>> = BaseSchemaAsync<SetInput<TValue>, TOutput> & { type: 'set'; value: TValue } → type SetSchemaAsync<TValue extends BaseSchema | BaseSchemaAsync, TOutput = SetOutput<TValue>> = BaseSchemaAsync<SetInput<TValue>, TOutput> & { type: 'set'; value: TValue; message: ErrorMessage; pipe: PipeAsync<SetOutput<TValue>> | undefined }
  • changed: type SpecialSchema<TInput, TOutput = TInput> = BaseSchema<TInput, TOutput> & { type: 'special' } → type SpecialSchema<TInput, TOutput = TInput> = BaseSchema<TInput, TOutput> & { type: 'special'; check: (input: unknown) => boolean; message: ErrorMessage; pipe: Pipe<TInput> | undefined }
  • changed: type SpecialSchemaAsync<TInput, TOutput = TInput> = BaseSchemaAsync<TInput, TOutput> & { type: 'special' } → type SpecialSchemaAsync<TInput, TOutput = TInput> = BaseSchemaAsync<TInput, TOutput> & { type: 'special'; check: (input: unknown) => boolean | Promise<boolean>; message: ErrorMessage; pipe: PipeAsync<TInput> | u…
  • changed: type StringSchema<TOutput = string> = BaseSchema<string, TOutput> & { type: 'string' } → type StringSchema<TOutput = string> = BaseSchema<string, TOutput> & { type: 'string'; message: ErrorMessage; pipe: Pipe<string> | undefined }
  • changed: type StringSchemaAsync<TOutput = string> = BaseSchemaAsync<string, TOutput> & { type: 'string' } → type StringSchemaAsync<TOutput = string> = BaseSchemaAsync<string, TOutput> & { type: 'string'; message: ErrorMessage; pipe: PipeAsync<string> | undefined }
  • changed: type SymbolSchema<TOutput = symbol> = BaseSchema<symbol, TOutput> & { type: 'symbol' } → type SymbolSchema<TOutput = symbol> = BaseSchema<symbol, TOutput> & { type: 'symbol'; message: ErrorMessage }
  • changed: type SymbolSchemaAsync<TOutput = symbol> = BaseSchemaAsync<symbol, TOutput> & { type: 'symbol' } → type SymbolSchemaAsync<TOutput = symbol> = BaseSchemaAsync<symbol, TOutput> & { type: 'symbol'; message: ErrorMessage }
  • changed: type TuplePathItem = { type: 'tuple'; input: [any, ...any[]]; key: number; value: any } → type TuplePathItem = { type: 'tuple'; input: [unknown, ...unknown[]]; key: number; value: unknown }
  • changed: 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 } → 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; pipe: Pipe<TupleOutput<TItems, TRest>> | u…
  • changed: 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 } → 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; pipe: PipeAsync<TupleOutput<TItems, T…
  • changed: type UndefinedSchema<TOutput = undefined> = BaseSchema<undefined, TOutput> & { type: 'undefined' } → type UndefinedSchema<TOutput = undefined> = BaseSchema<undefined, TOutput> & { type: 'undefined'; message: ErrorMessage }
  • changed: type UndefinedSchemaAsync<TOutput = undefined> = BaseSchemaAsync<undefined, TOutput> & { type: 'undefined' } → type UndefinedSchemaAsync<TOutput = undefined> = BaseSchemaAsync<undefined, TOutput> & { type: 'undefined'; message: ErrorMessage }
  • changed: type UnionSchema<TOptions extends UnionOptions, TOutput = Output<TOptions[number]>> = BaseSchema<Input<TOptions[number]>, TOutput> & { type: 'union'; options: TOptions } → type UnionSchema<TOptions extends UnionOptions, TOutput = Output<TOptions[number]>> = BaseSchema<Input<TOptions[number]>, TOutput> & { type: 'union'; options: TOptions; message: ErrorMessage }
  • changed: type UnionSchemaAsync<TOptions extends UnionOptionsAsync, TOutput = Output<TOptions[number]>> = BaseSchemaAsync<Input<TOptions[number]>, TOutput> & { type: 'union'; options: TOptions } → type UnionSchemaAsync<TOptions extends UnionOptionsAsync, TOutput = Output<TOptions[number]>> = BaseSchemaAsync<Input<TOptions[number]>, TOutput> & { type: 'union'; options: TOptions; message: ErrorMessage }
  • changed: type UnknownSchema<TOutput = unknown> = BaseSchema<unknown, TOutput> & { type: 'unknown' } → type UnknownSchema<TOutput = unknown> = BaseSchema<unknown, TOutput> & { type: 'unknown'; pipe: Pipe<unknown> | undefined }
  • changed: type UnknownSchemaAsync<TOutput = unknown> = BaseSchemaAsync<unknown, TOutput> & { type: 'unknown' } → type UnknownSchemaAsync<TOutput = unknown> = BaseSchemaAsync<unknown, TOutput> & { type: 'unknown'; pipe: PipeAsync<unknown> | undefined }
  • changed: type VariantSchema<TKey extends string, TOptions extends VariantOptions<TKey>, TOutput = Output<TOptions[number]>> = BaseSchema<Input<TOptions[number]>, TOutput> & { type: 'variant'; options: TOptions } → 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 }
  • changed: type VariantSchemaAsync<TKey extends string, TOptions extends VariantOptionsAsync<TKey>, TOutput = Output<TOptions[number]>> = BaseSchemaAsync<Input<TOptions[number]>, TOutput> & { type: 'variant'; options: TOptions } → 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 }
  • changed: type VoidSchema<TOutput = void> = BaseSchema<void, TOutput> & { type: 'void' } → type VoidSchema<TOutput = void> = BaseSchema<void, TOutput> & { type: 'void'; message: ErrorMessage }
  • changed: type VoidSchemaAsync<TOutput = void> = BaseSchemaAsync<void, TOutput> & { type: 'void' } → type VoidSchemaAsync<TOutput = void> = BaseSchemaAsync<void, TOutput> & { type: 'void'; message: ErrorMessage }
  • added: function nullable<TWrapped extends BaseSchema>(wrapped: TWrapped): NullableSchema<TWrapped>
  • added: function nullableAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped): NullableSchemaAsync<TWrapped>
  • added: function nullish<TWrapped extends BaseSchema>(wrapped: TWrapped): NullishSchema<TWrapped>
  • added: function nullishAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped): NullishSchemaAsync<TWrapped>
  • added: function optional<TWrapped extends BaseSchema>(wrapped: TWrapped): OptionalSchema<TWrapped>
  • added: function optionalAsync<TWrapped extends BaseSchema | BaseSchemaAsync>(wrapped: TWrapped): OptionalSchemaAsync<TWrapped>
  • added: type BaseTransformation<TInput = any> = { async: false; _parse(input: TInput): PipeResult<TInput> }
  • added: type BaseTransformationAsync<TInput = any> = { async: true; _parse(input: TInput): Promise<PipeResult<TInput>> }
  • added: type BaseValidation<TInput = any> = { async: false; message: ErrorMessage; _parse(input: TInput): PipeResult<TInput> }
  • added: type BaseValidationAsync<TInput = any> = { async: true; message: ErrorMessage; _parse(input: TInput): Promise<PipeResult<TInput>> }
  • added: type BytesValidation<TInput extends string, TRequirement extends number> = BaseValidation<TInput> & { type: 'bytes'; requirement: TRequirement }
  • added: type Cuid2Validation<TInput extends string> = BaseValidation<TInput> & { type: 'cuid2'; requirement: RegExp }
  • added: type CustomValidation<TInput> = BaseValidation<TInput> & { type: 'custom'; requirement: (input: TInput) => boolean }
  • added: type CustomValidationAsync<TInput> = BaseValidationAsync<TInput> & { type: 'custom'; requirement: (input: TInput) => Promise<boolean> }
  • added: type EmailValidation<TInput extends string> = BaseValidation<TInput> & { type: 'email'; requirement: RegExp }
  • added: type EmojiValidation<TInput extends string> = BaseValidation<TInput> & { type: 'emoji'; requirement: RegExp }
  • added: type EndsWithValidation<TInput extends string, TRequirement extends string> = BaseValidation<TInput> & { type: 'ends_with'; requirement: TRequirement }
  • added: type EqualValidation<TInput extends string | number | bigint | boolean, TRequirement extends TInput> = BaseValidation<TInput> & { type: 'equal'; requirement: TRequirement }
  • added: type ExcludesValidation<TInput extends string | any[], TRequirement extends TInput extends any[] ? TInput[number] : TInput> = BaseValidation<TInput> & { type: 'excludes'; requirement: TRequirement }
  • added: type FiniteValidation<TInput extends number> = BaseValidation<TInput> & { type: 'finite'; requirement: (input: TInput) => boolean }
  • added: type ImeiValidation<TInput extends string> = BaseValidation<TInput> & { type: 'imei'; requirement: [RegExp, (input: string) => boolean] }
  • added: type IncludesValidation<TInput extends string | any[], TRequirement extends TInput extends any[] ? TInput[number] : TInput> = BaseValidation<TInput> & { type: 'includes'; requirement: TRequirement }
  • added: type IntegerValidation<TInput extends number> = BaseValidation<TInput> & { type: 'integer'; requirement: (input: TInput) => boolean }
  • added: type IpValidation<TInput extends string> = BaseValidation<TInput> & { type: 'ip'; requirement: [RegExp, RegExp] }
  • added: type Ipv4Validation<TInput extends string> = BaseValidation<TInput> & { type: 'ipv4'; requirement: RegExp }
  • added: type Ipv6Validation<TInput extends string> = BaseValidation<TInput> & { type: 'ipv6'; requirement: RegExp }
  • added: type IsoDateTimeValidation<TInput extends string> = BaseValidation<TInput> & { type: 'iso_date_time'; requirement: RegExp }
  • added: type IsoDateValidation<TInput extends string> = BaseValidation<TInput> & { type: 'iso_date'; requirement: RegExp }
  • added: type IsoTimeSecondValidation<TInput extends string> = BaseValidation<TInput> & { type: 'iso_time_second'; requirement: RegExp }
  • added: type IsoTimeValidation<TInput extends string> = BaseValidation<TInput> & { type: 'iso_time'; requirement: RegExp }
  • added: type IsoTimestampValidation<TInput extends string> = BaseValidation<TInput> & { type: 'iso_timestamp'; requirement: RegExp }
  • added: type IsoWeekValidation<TInput extends string> = BaseValidation<TInput> & { type: 'iso_week'; requirement: RegExp }
  • added: type LengthValidation<TInput extends string | any[], TRequirement extends number> = BaseValidation<TInput> & { type: 'length'; requirement: TRequirement }
  • added: type MaxBytesValidation<TInput extends string, TRequirement extends number> = BaseValidation<TInput> & { type: 'max_bytes'; requirement: TRequirement }
  • added: type MaxLengthValidation<TInput extends string | any[], TRequirement extends number> = BaseValidation<TInput> & { type: 'max_length'; requirement: TRequirement }
  • added: type MaxSizeValidation<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number> = BaseValidation<TInput> & { type: 'max_size'; requirement: TRequirement }
  • added: type MaxValueValidation<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput> = BaseValidation<TInput> & { type: 'max_value'; requirement: TRequirement }
  • added: type MimeTypeValidation<TInput extends Blob, TRequirement extends `${string}/${string}`[]> = BaseValidation<TInput> & { type: 'mime_type'; requirement: TRequirement }
  • added: type MinBytesValidation<TInput extends string, TRequirement extends number> = BaseValidation<TInput> & { type: 'min_bytes'; requirement: TRequirement }
  • added: type MinLengthValidation<TInput extends string | any[], TRequirement extends number> = BaseValidation<TInput> & { type: 'min_length'; requirement: TRequirement }
  • added: type MinSizeValidation<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number> = BaseValidation<TInput> & { type: 'min_size'; requirement: TRequirement }
  • added: type MinValueValidation<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput> = BaseValidation<TInput> & { type: 'min_value'; requirement: TRequirement }
  • added: type MultipleOfValidation<TInput extends number, TRequirement extends number> = BaseValidation<TInput> & { type: 'multiple_of'; requirement: TRequirement }
  • added: type NotBytesValidation<TInput extends string, TRequirement extends number> = BaseValidation<TInput> & { type: 'not_bytes'; requirement: TRequirement }
  • added: type NotLengthValidation<TInput extends string | any[], TRequirement extends number> = BaseValidation<TInput> & { type: 'not_length'; requirement: TRequirement }
  • added: type NotSizeValidation<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number> = BaseValidation<TInput> & { type: 'not_size'; requirement: TRequirement }
  • added: type NotValueValidation<TInput extends string | number | bigint | Date, TRequirement extends TInput> = BaseValidation<TInput> & { type: 'not_value'; requirement: TRequirement }
  • added: type RegexValidation<TInput extends string> = BaseValidation<TInput> & { type: 'regex'; requirement: RegExp }
  • added: type SafeIntegerValidation<TInput extends number> = BaseValidation<TInput> & { type: 'safe_integer'; requirement: (input: TInput) => boolean }
  • added: type SizeValidation<TInput extends Map<any, any> | Set<any> | Blob, TRequirement extends number> = BaseValidation<TInput> & { type: 'size'; requirement: TRequirement }
  • added: type StartsWithValidation<TInput extends string, TRequirement extends string> = BaseValidation<TInput> & { type: 'stars_with'; requirement: TRequirement }
  • added: type ToCustomTransformation<TInput> = BaseTransformation<TInput> & { type: 'to_custom' }
  • added: type ToCustomTransformationAsync<TInput> = BaseTransformationAsync<TInput> & { type: 'to_custom' }
  • added: type ToLowerCaseTransformation = BaseTransformation<string> & { type: 'to_lower_case' }
  • added: type ToMaxValueTransformation<TInput extends string | number | bigint | Date, TRequirement extends TInput> = BaseTransformation<TInput> & { type: 'to_max_value'; requirement: TRequirement }
  • added: type ToMinValueTransformation<TInput extends string | number | bigint | Date, TRequirement extends TInput> = BaseTransformation<TInput> & { type: 'to_min_value'; requirement: TRequirement }
  • added: type ToTrimmedEndTransformation = BaseTransformation<string> & { type: 'to_trimmed_end' }
  • added: type ToTrimmedStartTransformation = BaseTransformation<string> & { type: 'to_trimmed_start' }
  • added: type ToTrimmedTransformation = BaseTransformation<string> & { type: 'to_trimmed' }
  • added: type ToUpperCaseTransformation = BaseTransformation<string> & { type: 'to_upper_case' }
  • added: type UlidValidation<TInput extends string> = BaseValidation<TInput> & { type: 'ulid'; requirement: RegExp }
  • added: type UrlValidation<TInput extends string> = BaseValidation<TInput> & { type: 'url'; requirement: (input: TInput) => boolean }
  • added: type UuidValidation<TInput extends string> = BaseValidation<TInput> & { type: 'uuid'; requirement: RegExp }
  • added: type ValueValidation<TInput extends string | number | bigint | boolean | Date, TRequirement extends TInput> = BaseValidation<TInput> & { type: 'value'; requirement: TRequirement }