Type.BigInt

Creates a BigInt type.

⚠️ This is type is cannot be expressed with Json. Do not use if publishing types for other languages to consume.

Example

Example usage is shown below.

const T = Type.BigInt()                             // const T = {
                                                    //   type: 'bigint'
                                                    // }

type T = Static<typeof T>                           // type T = bigint

Guard

Use the IsBigInt function to guard values of this type.

Type.IsBigInt(value)                                // value is TBigInt