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

Function isRefinedPattern

ark/schema/shared/compile.ts:730–731  ·  view source on GitHub ↗
(node: BaseNode)

Source from the content-addressed store, hash-verified

728
729// a pattern's verdict never changes, so Apply reuses Allows'
730export const isRefinedPattern = (node: BaseNode): node is IntersectionNode =>
731 isRefinedBasis(node) && node.preStruct[0].is("pattern")

Callers 3

elementTraversalsOfMethod · 0.90
travKeyFunction · 0.85
keyFailsFunction · 0.85

Calls 2

isRefinedBasisFunction · 0.85
isMethod · 0.80

Tested by

no test coverage detected