Skip to main content

Variable: t

const t: object

Type declaration

array()

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

Type Parameters

Type Parameter
ValueType
ValueBitSize extends null | number

Parameters

ParameterType
typeIType<ValueType, ValueBitSize, ValueType>

Returns

IType<ValueType[], null>

bigInt32

bigInt32: IType<bigint, 32, bigint> = BigInt32Type

bigInt64

bigInt64: IType<bigint, 64, bigint> = BigInt64Type

bigUint32

bigUint32: IType<bigint, 32, bigint> = BigUint32Type

bigUint64

bigUint64: IType<bigint, 64, bigint> = BigUint64Type

bit

bit: IType<0 | 1, 1, number> = BitType

boolean

boolean: IType<boolean, 1, boolean> = BooleanType

constant()

constant: <ValueType>(constantValue: ValueType) => IType<ValueType, 0, never> = ConstantType

Type Parameters

Type Parameter
ValueType

Parameters

ParameterType
constantValueValueType

Returns

IType<ValueType, 0, never>

fixedLengthArray()

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

Type Parameters

Type Parameter
ValueType
ValueBitSize extends null | number

Parameters

ParameterType
typeIType<ValueType, ValueBitSize, ValueType>
lengthnumber

Returns

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

float32

float32: IType<number, 32, number> = Float32Type

float64

float64: IType<number, 64, number> = Float64Type

int16

int16: IType<number, 16, number> = Int16Type

int2

int2: IType<number, 2, number> = Int2Type

int32

int32: IType<number, 32, number> = Int32Type

int4

int4: IType<number, 4, number> = Int4Type

int64

int64: IType<number, 64, number> = Int64Type

int8

int8: IType<number, 8, number> = Int8Type

nullable()

nullable: <ValueType, ValueBitSize>(type: IType<ValueType, ValueBitSize, ValueType>) => IType<ValueType | null, null, ValueType | null | undefined> = NullableType

Type Parameters

Type Parameter
ValueType
ValueBitSize extends null | number

Parameters

ParameterType
typeIType<ValueType, ValueBitSize, ValueType>

Returns

IType<ValueType | null, null, ValueType | null | undefined>

snowflake

snowflake: IType<bigint, 64, string | bigint> = SnowflakeType

string

string: IType<string, null, string> = StringType

uint16

uint16: IType<number, 16, number> = Uint16Type

uint2

uint2: IType<number, 2, number> = Uint2Type

uint32

uint32: IType<number, 32, number> = Uint32Type

uint4

uint4: IType<number, 4, number> = Uint4Type

uint64

uint64: IType<number, 64, number> = Uint64Type

uint8

uint8: IType<number, 8, number> = Uint8Type

Defined in

types/index.ts:29