Constructors
constructor
- new AssertState(value, pathPart?, parent?): $.AssertState
Parameters
- value: unknown
Optional
pathPart: stringOptional
parent: $.AssertState
Properties
Optional
parent
pathPart
pathPart: string
value
value: unknown
Accessors
path
- get path(): string
Returns string
Methods
bigint
- bigint(shape, min, max): void
Returns void
equals
- equals(shape, value, label?): void
Parameters
- shape: $.AnyShape
- value: unknown
Optional
label: string
Returns void
instanceof
- instanceof(shape, ctor): void
Parameters
- shape: $.AnyShape
- ctor: (new (...args: any) => unknown)
- new (...args): unknown
Returns unknown
Returns void
integer
- integer(shape, min, max): void
Returns void
key
- key(shape, key): $.AssertState
Parameters
- shape: $.AnyShape
- key: string | number | symbol
nonNull
- nonNull(shape): void
Returns void
typeof
- typeof<K>(shape, type): void
Type Parameters
- K extends keyof TypeofMap
Returns void