MCPcopy Create free account
hub / github.com/Effect-TS/effect / isStringBigInt

Function isStringBigInt

packages/effect/src/SchemaAST.ts:5130–5143  ·  view source on GitHub ↗
(annotations?: Schema.Annotations.Filter)

Source from the content-addressed store, hash-verified

5128
5129/** @internal */
5130export 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 */
5146export const bigIntString = appendChecks(string, [isStringBigInt({

Callers 1

SchemaAST.tsFile · 0.70

Calls 1

isPatternFunction · 0.70

Tested by

no test coverage detected