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

Method matchPart

packages/effect/src/SchemaAST.ts:1194–1196  ·  view source on GitHub ↗

@internal

(s: string, options: ParseOptions)

Source from the content-addressed store, hash-verified

1192 }
1193 /** @internal */
1194 matchPart(s: string, options: ParseOptions): string | undefined {
1195 return segmentTemplateLiteralParts(this, s, options) === undefined ? undefined : s
1196 }
1197 /** @internal */
1198 asTemplateLiteralParser(): Arrays {
1199 const tuple = new Arrays(false, this.parts.map(partFromString), [])

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected