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

Function isStringBigInt

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

Source from the content-addressed store, hash-verified

3964
3965/** @internal */
3966export 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 */
3982export const bigIntString = appendChecks(string, [isStringBigInt({

Callers 1

SchemaAST.tsFile · 0.70

Calls 1

isPatternFunction · 0.70

Tested by

no test coverage detected