effect-io-ai

Package: effect
Module: Schema

Schema.BigIntFromNumber

This schema transforms a number into a bigint by parsing the number using the BigInt function.

It returns an error if the value can’t be safely encoded as a number due to being out of range.

Signature

declare class BigIntFromNumber

Source

Since v3.10.0