MCPcopy Create free account
hub / github.com/arktypeio/arktype / strings

Method strings

ark/type/match.ts:531–539  ·  view source on GitHub ↗
(cases: InternalCases)

Source from the content-addressed store, hash-verified

529 }
530
531 strings(cases: InternalCases): InternalChainedMatchParser | Match {
532 return this.caseEntries(
533 Object.entries(cases).map(([k, v]) =>
534 k === "default" ?
535 [k, v as never]
536 : [this.$.node("unit", { unit: k }), v as Morph]
537 )
538 )
539 }
540
541 protected caseEntries(
542 entries: CaseEntry[]

Callers 2

match.test.tsFile · 0.80
cyclic.test.tsFile · 0.80

Calls 3

caseEntriesMethod · 0.95
nodeMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected