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

Function caseMember

ark/type/standalone/combinators.ts:1306–1307  ·  view source on GitHub ↗
(node: UnionNode, k: string)

Source from the content-addressed store, hash-verified

1304}
1305
1306const caseMember = (node: UnionNode, k: string): BaseRoot | undefined =>
1307 (node.discriminant!.members as Record<string, BaseRoot> | undefined)?.[k]
1308
1309// a list of units, cases by domain, a discriminated union or a list of checkers
1310const writeUnionCombinator = (

Callers 1

refFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected