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

Method getParser

packages/effect/src/SchemaAST.ts:1313–1315  ·  view source on GitHub ↗

@internal

()

Source from the content-addressed store, hash-verified

1311 }
1312 /** @internal */
1313 getParser() {
1314 return fromConst(this, this.literal)
1315 }
1316 /** @internal */
1317 matchPart(s: string, _options: ParseOptions): LiteralValue | undefined {
1318 return s === globalThis.String(this.literal) ? this.literal : undefined

Callers

nothing calls this directly

Calls 1

fromConstFunction · 0.85

Tested by

no test coverage detected