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

Function isPatternPart

ark/aot/graph.ts:7136–7141  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

7134}
7135
7136const isPatternPart = (node: Node): boolean =>
7137 node.type === "ObjectPattern" ||
7138 node.type === "ArrayPattern" ||
7139 node.type === "Property" ||
7140 node.type === "AssignmentPattern" ||
7141 node.type === "RestElement"
7142
7143export const isFunctionNode = (node: Node): node is FunctionNode =>
7144 node.type === "ArrowFunctionExpression" ||

Callers 2

destructuredWriteOfMethod · 0.85
unavailableReadOfMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected