(annotations?: Schema.Annotations.Filter)
| 5128 | |
| 5129 | /** @internal */ |
| 5130 | export function isStringBigInt(annotations?: Schema.Annotations.Filter) { |
| 5131 | return isPattern( |
| 5132 | isStringBigIntRegExp, |
| 5133 | { |
| 5134 | expected: "a string representing a bigint", |
| 5135 | representation: { |
| 5136 | id: "effect/schema/isStringBigInt", |
| 5137 | payload: null |
| 5138 | }, |
| 5139 | toJsonSchema: () => ({ pattern: isStringBigIntRegExp.source }), |
| 5140 | ...annotations |
| 5141 | } |
| 5142 | ) |
| 5143 | } |
| 5144 | |
| 5145 | /** @internal */ |
| 5146 | export const bigIntString = appendChecks(string, [isStringBigInt({ |