MCPcopy
hub / github.com/Effect-TS/effect / BigInt$

Class BigInt$

packages/effect/src/Schema.ts:5693–5705  ·  view source on GitHub ↗

@ignore

Source from the content-addressed store, hash-verified

5691
5692/** @ignore */
5693class BigInt$ extends transformOrFail(
5694 String$.annotations({ description: "a string to be decoded into a bigint" }),
5695 BigIntFromSelf,
5696 {
5697 strict: true,
5698 decode: (i, _, ast) =>
5699 ParseResult.fromOption(
5700 bigInt_.fromString(i),
5701 () => new ParseResult.Type(ast, i, `Unable to decode ${JSON.stringify(i)} into a bigint`)
5702 ),
5703 encode: (a) => ParseResult.succeed(String(a))
5704 }
5705).annotations({ identifier: "BigInt" }) {}
5706
5707export {
5708 /**

Callers

nothing calls this directly

Calls 4

transformOrFailInterface · 0.85
StringInterface · 0.85
fromStringMethod · 0.80
annotationsMethod · 0.65

Tested by

no test coverage detected