(annotations?: Schema.Annotations.Filter)
| 3964 | |
| 3965 | /** @internal */ |
| 3966 | export function isStringBigInt(annotations?: Schema.Annotations.Filter) { |
| 3967 | return isPattern( |
| 3968 | isStringBigIntRegExp, |
| 3969 | { |
| 3970 | expected: "a string representing a bigint", |
| 3971 | representation: { |
| 3972 | id: "effect/schema/isStringBigInt", |
| 3973 | payload: null |
| 3974 | }, |
| 3975 | toJsonSchema: () => ({ pattern: isStringBigIntRegExp.source }), |
| 3976 | ...annotations |
| 3977 | } |
| 3978 | ) |
| 3979 | } |
| 3980 | |
| 3981 | /** @internal */ |
| 3982 | export const bigIntString = appendChecks(string, [isStringBigInt({ |