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

Method matchPart

packages/effect/src/SchemaAST.ts:2913–2919  ·  view source on GitHub ↗

@internal

(s: string, options: ParseOptions)

Source from the content-addressed store, hash-verified

2911 }
2912 /** @internal */
2913 matchPart(s: string, options: ParseOptions): LiteralValue | undefined {
2914 for (const type of this.types) {
2915 const out = (type as TemplateLiteralPart).matchPart(s, options)
2916 if (out !== undefined) return out
2917 }
2918 return undefined
2919 }
2920 /** @internal */
2921 getExpected(getExpected: (ast: AST) => string): string {
2922 const expected = this.annotations?.expected

Callers 1

goFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected