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

Method matchPart

packages/effect/src/SchemaAST.ts:1317–1319  ·  view source on GitHub ↗

@internal

(s: string, _options: ParseOptions)

Source from the content-addressed store, hash-verified

1315 }
1316 /** @internal */
1317 matchPart(s: string, _options: ParseOptions): LiteralValue | undefined {
1318 return s === globalThis.String(this.literal) ? this.literal : undefined
1319 }
1320 /** @internal */
1321 toCodecJson(): AST {
1322 return typeof this.literal === "bigint" ? literalToString(this) : this

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected