@ignore
| 5691 | |
| 5692 | /** @ignore */ |
| 5693 | class 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 | |
| 5707 | export { |
| 5708 | /** |
nothing calls this directly
no test coverage detected