Skip to content

Function: castValueAsBigint()

ts
function castValueAsBigint(value: unknown): bigint;

Casts an unknown value to a bigint

Parameters

ParameterTypeDescription
valueunknownThe value to cast

Returns

bigint

The value as a bigint

Throws

E_UNCASTABLE when the value cannot be cast to a bigint