External module "safeDecoders"
Type aliases
Map
Map: function
Type declaration
-
- <Decoders, T>(f: function, ...decoders: Decoders): Decoder<T>
-
Type parameters
Parameters
-
f: function
-
Rest ...decoders: Decoders
Union
Union: function
Type declaration
-
- <T, Values>(decoder: Decoder<T>, ...values: Values): Decoder<Values[number]>
-
Type parameters
-
T: string | number | boolean
-
Values: Array<T>
Parameters
Returns Decoder<Values[number]>
Functions
Const array
-
Type parameters
Parameters
Returns Decoder<Array<T>>
Const bool
- bool(value: any): boolean
-
Parameters
Returns boolean
Const compose
- compose(...decoders: Array<Decoder<any>>): (Anonymous function)
-
Parameters
-
Rest ...decoders: Array<Decoder<any>>
Returns (Anonymous function)
Const field
-
Type parameters
Parameters
Const isPlainObject
- isPlainObject(value: any): boolean
-
Parameters
Returns boolean
Const map
- map(f: function, ...decoders: Array<Decoder<any>>): (Anonymous function)
-
Parameters
-
f: function
-
Rest ...decoders: Array<Decoder<any>>
Returns (Anonymous function)
Const maybe
-
Type parameters
Parameters
Returns Decoder<T | undefined>
Const nullable
-
Type parameters
Parameters
Returns Decoder<T | null>
Const num
-
Parameters
Returns number
Const object
-
Type parameters
Parameters
Const oneOf
- oneOf(...decoders: Array<Decoder<any>>): (Anonymous function)
-
Parameters
-
Rest ...decoders: Array<Decoder<any>>
Returns (Anonymous function)
Const record
-
Type parameters
Parameters
Returns Decoder<Record<string, T>>
Const str
-
Parameters
Returns string
Const union
- union(decoder: Decoder<any>, ...values: Array<any>): function
-
Parameters
-
-
Rest ...values: Array<any>
Returns function