Type Aliases
ArrayFactory
Type declaration
Type Parameters
Parameters
Returns Serdes<T[]>
BytesFactory
Bytes
Factory
: ((headSd
: Serdes<number>) => Serdes<Uint8Array>)Type declaration
Parameters
Returns Serdes<Uint8Array>
ClazzFactory
Type declaration
Type Parameters
Parameters
Encoding
Encoding<T>: { decode: any; encode: any }
Type Parameters
Type declaration
decode:function
- decode(ctx: Context, size: number): T
encode:function
- encode(ctx: Context, data: T): void
GetType
Get
Type
<T>: T extends Serdes<infer X
> ? X : neverType Parameters
MapFactory
Type declaration
Type Parameters
Parameters
Returns Serdes<Record<string, T>>
OneOfFactory
Type declaration
Type Parameters
T extends Record<string | number | symbol, unknown>
Parameters
OneOfMap
OneOfMap<T>: { [ K in keyof T]: { type: K; value: T[K] } }
Type Parameters
OptionalFactory
Type declaration
Type Parameters
Parameters
Returns Serdes<T | void>
RecFactory
Type declaration
Type Parameters
Parameters
Ser
Ser
<T>: ((ctx
: Context, data
: T) => void)Type Parameters
StringFactory
Type declaration
Parameters
Returns Serdes<string>
Struct
Struct: Record<string | number, unknown> | unknown[]
StructDefinition
Struct
Definition
<T>: { [ k in keyof T]: Serdes<T[k]> }Type Parameters
StructFactory
Type declaration
Type Parameters
Parameters
TupleFactory
Type declaration
Type Parameters
Parameters
ValueOf
ValueOf<T>: T[keyof T]
Type Parameters