BigIntSource effect/SchemaAST.ts:15651 lines
export const const bigInt: BigIntconst bigInt: {
_tag: 'BigInt';
getParser: () => SchemaParser.Parser;
matchPart: (s: string, options: ParseOptions) => bigint | undefined;
toCodecStringTree: () => AST;
getExpected: () => string;
annotations: Schema.Annotations.Annotations | undefined;
checks: Checks | undefined;
encoding: Encoding | undefined;
context: Context | undefined;
toString: () => string;
}
Provides the singleton
BigInt
AST instance.
When to use
Use to reuse the canonical BigInt AST node when constructing, inspecting,
or transforming schemas at the AST level.
bigInt = new constructor BigInt(annotations?: Schema.Annotations.Annotations | undefined, checks?: Checks | undefined, encoding?: Encoding | undefined, context?: Context | undefined): BigIntAST node matching any bigint value.
Details
When serialized to a string-based codec, bigints are converted to/from
their decimal string representation.
BigInt()Referenced by 1 symbols