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

Method matchPart

packages/effect/src/SchemaAST.ts:1603–1608  ·  view source on GitHub ↗

@internal

(s: string, options: ParseOptions)

Source from the content-addressed store, hash-verified

1601 }
1602 /** @internal */
1603 matchPart(s: string, options: ParseOptions): bigint | undefined {
1604 if (!isStringBigIntRegExp.test(s)) return undefined
1605 const value = globalThis.BigInt(s)
1606 if (options.disableChecks || !this.checks) return value
1607 return collectIssues(this.checks, value, undefined, this, options) ? undefined : value
1608 }
1609 /** @internal */
1610 toCodecStringTree(): AST {
1611 return replaceEncoding(this, [bigIntToString])

Callers

nothing calls this directly

Calls 1

collectIssuesFunction · 0.85

Tested by

no test coverage detected