Type aliases
AdditionalItemsError
AdditionalPropertiesError
Additional
Properties
Error
: ErrorObject<"additionalProperties", { additionalProperty
: string }, AnySchema>AnyOfError
AnySchema
AnySchemaObject
AnyValidateFunction
Type parameters
ApplicatorKeywordError
ArrayBufferLike
ArrayBufferLike: ArrayBufferTypes[keyof ArrayBufferTypes]
ArrayBufferView
AwaitIterable
Type parameters
Block
Block
: { bytes
: Uint8Array; cid
: CID }BufferEncoding
BufferEncoding: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex"
ByteView
Type parameters
ByteView
ByteView<T>: Uint8Array | (Uint8Array & { data: T })
Type parameters
CIDString
CIDVersion
CIDVersion: 0 | 1
CarReader
Code
CodeItem
Code
Item
: Name | string | number | boolean | nullComparison
Comparison: "<=" | ">=" | "<" | ">"
ConstError
Const
Error
: ErrorObject<"const", { allowedValue
: any }>ContainsError
DefinedError
DependenciesError
DependentRequiredError
DiscrErrorObj
Discr
Error
Obj
<E>: ErrorObject<"discriminator", { error
: E; tag
: string; tagValue
: unknown }, string>Type parameters
DiscriminatorError
EnumError
Enum
Error
: ErrorObject<"enum", { allowedValues
: any[] }, any[] | { $data
: string }>ErrorNoParams
Type parameters
EvaluatedItems
EvaluatedItems: number | true
EvaluatedProperties
EvaluatedProperties: { [ K in string]?: true } | true
Exclude
Exclude<T, U>: T extends U ? never : T
Type parameters
FormatError
Format
Error
: ErrorObject<"format", { format
: string }, string | { $data
: string }>IfKeywordError
ItemsError
IteratorResult
Type parameters
JSONSchemaType
Type parameters
JSONType
JSONType<T, IsPartial>: IsPartial extends true ? T | undefined : T
Type parameters
T: string
IsPartial: boolean
Known
Known
: {} | [Known, ...Known[]] | Known[] | number | string | boolean | nullKwd
Kwd: "maximum" | "minimum" | "exclusiveMaximum" | "exclusiveMinimum"
LimitError
Limit
Error
: ErrorObject<"maxItems" | "minItems" | "minProperties" | "maxProperties" | "minLength" | "maxLength", { limit
: number }, number | { $data
: string }>LimitNumberError
LocalRefs
MatchRule
MatchRule<T, R>: R extends (input: T) => infer O ? O : never
Type parameters
Multibase
Multibase<Prefix>: string | (string & { 0: Prefix })
Type parameters
MultipleOfError
Multiple
Of
Error
: ErrorObject<"multipleOf", { multipleOf
: number }, number | { $data
: string }>NotKeywordError
Nullable
Nullable
<T>: undefined extends T ? { const
?: null; default
?: T | null; enum
?: Readonly<(T | null)[]>; nullable
: true } : { const
?: T; default
?: T; enum
?: Readonly<T[]> }Type parameters
Omit
Type parameters
OneOfError
Partial
Partial<T>: { [ P in keyof T]?: T[P] }
Type parameters
Pattern
Pattern<I, O>: ((input: I) => O) | [I, O]
Type parameters
PatternError
Pattern
Error
: ErrorObject<"pattern", { pattern
: string }, string | { $data
: string }>Pick
Pick<T, K>: { [ P in K]: T[P] }
Type parameters
PropertyDependencies
PropertyDependencies: { [ K in string]?: string[] }
PropertyNamesError
ReadableStreamDefaultReadResult
Type parameters
Readonly
Readonly<T>: { readonly [ P in keyof T]: T[P] }
Type parameters
Record
Record<K, T>: { [ P in K]: T }
Type parameters
RequiredError
Required
Error
: ErrorObject<"required", { missingProperty
: string }, string[] | { $data
: string }>Rule
Rule<Format>: Format extends [infer I, infer O] ? (input: I) => O : Format extends (input: infer I) => infer O ? (input: I) => O : never
Type parameters
Schema
SchemaRefs
ScopeValueSets
StrictNullChecksWrapper
StrictNullChecksWrapper<Name, Type>: undefined extends null ? `strictNullChecks must be true in tsconfig to use ${Name}` : Type
Type parameters
Tagged
Tagged<T, Tag>: T & { tag?: Tag }
Type parameters
TypeError
TypedArray
TypedArray: Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | BigUint64Array | BigInt64Array | Float32Array | Float64Array
UncheckedJSONSchemaType
UncheckedJSONSchema
Type
<T, IsPartial>: ({ anyOf
: readonly UncheckedJSONSchemaType<T, IsPartial>[] } | { oneOf
: readonly UncheckedJSONSchemaType<T, IsPartial>[] } | ({ type
: readonly (T extends number ? JSONType<"number" | "integer", IsPartial> : T extends string ? JSONType<"string", IsPartial> : T extends boolean ? JSONType<"boolean", IsPartial> : never)[] } & UnionToIntersection<T extends number ? NumberKeywords : T extends string ? StringKeywords : T extends boolean ? {} : never>) | ((T extends number ? { type
: JSONType<"number" | "integer", IsPartial> } & NumberKeywords : T extends string ? { type
: JSONType<"string", IsPartial> } & StringKeywords : T extends boolean ? { type
: JSONType<"boolean", IsPartial> } : T extends readonly [any, ...any[]] ? { items
: { readonly [ K in keyof T]-?: UncheckedJSONSchemaType<T[K], false> & Nullable<T[K]> } & { length
: T["length"] }; minItems
: T["length"]; type
: JSONType<"array", IsPartial> } & ({ maxItems
: T["length"] } | { additionalItems
: false }) : T extends readonly any[] ? { additionalItems
?: never; contains
?: UncheckedPartialSchema<T[0]>; items
: UncheckedJSONSchemaType<T[0], false>; maxContains
?: number; maxItems
?: number; minContains
?: number; minItems
?: number; type
: JSONType<"array", IsPartial>; uniqueItems
?: true } : T extends Record<string, any> ? { additionalProperties
?: boolean | UncheckedJSONSchemaType<T[string], false>; dependencies
?: { [ K in keyof T]?: Readonly<keyof T[]> | UncheckedPartialSchema<T> }; dependentRequired
?: { [ K in keyof T]?: Readonly<keyof T[]> }; dependentSchemas
?: { [ K in keyof T]?: UncheckedPartialSchema<T> }; maxProperties
?: number; minProperties
?: number; patternProperties
?: Record<string, UncheckedJSONSchemaType<T[string], false>>; properties
?: IsPartial extends true ? Partial<UncheckedPropertiesSchema<T>> : UncheckedPropertiesSchema<T>; propertyNames
?: Omit<UncheckedJSONSchemaType<string, false>, "type"> & { type
?: "string" }; type
: JSONType<"object", IsPartial>; unevaluatedProperties
?: boolean | UncheckedJSONSchemaType<T[string], false> } & (IsPartial extends true ? { required
: Readonly<keyof T[]> } : [UncheckedRequiredMembers<T>] extends [never] ? { required
?: Readonly<UncheckedRequiredMembers<T>[]> } : { required
: Readonly<UncheckedRequiredMembers<T>[]> }) : T extends null ? { nullable
: true; type
: JSONType<"null", IsPartial> } : never) & { allOf
?: Readonly<UncheckedPartialSchema<T>[]>; anyOf
?: Readonly<UncheckedPartialSchema<T>[]>; else
?: UncheckedPartialSchema<T>; if
?: UncheckedPartialSchema<T>; not
?: UncheckedPartialSchema<T>; oneOf
?: Readonly<UncheckedPartialSchema<T>[]>; then
?: UncheckedPartialSchema<T> })) & { $defs
?: Record<string, UncheckedJSONSchemaType<Known, true>>; $id
?: string; $ref
?: string; definitions
?: Record<string, UncheckedJSONSchemaType<Known, true>> }Type parameters
UncheckedPartialSchema
Type parameters
UncheckedPropertiesSchema
Type parameters
UncheckedRequiredMembers
UncheckedRequiredMembers<T>: { [ K in keyof T]-?: undefined extends T[K] ? never : K }[keyof T]
Type parameters
UnevaluatedItemsError
UnevaluatedPropertiesError
Unevaluated
Properties
Error
: ErrorObject<"unevaluatedProperties", { unevaluatedProperty
: string }, AnySchema>UnionToIntersection
UnionToIntersection<U>: (U extends any ? (_: U) => void : never) extends (_: infer I) => void ? I : never
Type parameters
UniqueItemsError
Unique
Items
Error
: ErrorObject<"uniqueItems", { i
: number; j
: number }, boolean | { $data
: string }>UsedNames
Used
Names
: Record<string, number | undefined>ValidationKeywordError
WithImplicitCoercion
WithImplicitCoercion<T>: T | { valueOf: any }
Type parameters
CID in string representation