Skip to main content

Variable: t

const t: object

Type declaration

array()

array: <ValueType, ValueBitSize>(type: IType<ValueType, ValueBitSize>) => IType<ValueType[], null> = ArrayType

Type Parameters

Type Parameter
ValueType
ValueBitSize extends null | number

Parameters

ParameterType
typeIType<ValueType, ValueBitSize>

Returns

IType<ValueType[], null>

bigInt32

bigInt32: IType<bigint, 32> = BigInt32Type

bigInt64

bigInt64: IType<bigint, 64> = BigInt64Type

bigUint32

bigUint32: IType<bigint, 32> = BigUint32Type

bigUint64

bigUint64: IType<bigint, 64> = BigUint64Type

bit

bit: IType<number, 1> = BitType

boolean

boolean: IType<boolean, 1> = BooleanType

fixedLengthArray()

fixedLengthArray: <ValueType, ValueBitSize>(type: IType<ValueType, ValueBitSize>, length: number) => IType<ValueType[], ValueBitSize extends null ? null : number> = FixedLengthArrayType

Type Parameters

Type Parameter
ValueType
ValueBitSize extends null | number

Parameters

ParameterType
typeIType<ValueType, ValueBitSize>
lengthnumber

Returns

IType<ValueType[], ValueBitSize extends null ? null : number>

float32

float32: IType<number, 32> = Float32Type

float64

float64: IType<number, 64> = Float64Type

int16

int16: IType<number, 16> = Int16Type

int2

int2: IType<number, 2> = Int2Type

int32

int32: IType<number, 32> = Int32Type

int4

int4: IType<number, 4> = Int4Type

int64

int64: IType<number, 64> = Int64Type

int8

int8: IType<number, 8> = Int8Type

snowflake

snowflake: object = SnowflakeType

snowflake.BIT_SIZE

readonly snowflake.BIT_SIZE: 64 = 64

snowflake.deserialize()

Parameters

ParameterType
bufferUnalignedUint16Array
offsetPointer

Returns

bigint

snowflake.serialize()

Parameters

ParameterType
bufferUnalignedUint16Array
valuestring | bigint

Returns

void

string

string: IType<string, null> = StringType

uint16

uint16: IType<number, 16> = Uint16Type

uint2

uint2: IType<number, 2> = Uint2Type

uint32

uint32: IType<number, 32> = Uint32Type

uint4

uint4: IType<number, 4> = Uint4Type

uint64

uint64: IType<number, 64> = Uint64Type

uint8

uint8: IType<number, 8> = Uint8Type

Defined in

types/index.ts:27