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

Function contextNodeOf

ark/aot/graph.ts:6545–6546  ·  view source on GitHub ↗
(context: TypeContext)

Source from the content-addressed store, hash-verified

6543type TypeContext = Node | { node: Node; parent: TypeContext }
6544
6545const contextNodeOf = (context: TypeContext): Node =>
6546 "node" in context ? contextNodeOf(context.parent) : context
6547
6548const hasInferType = (node: Node): boolean => {
6549 if (node.type === "TSInferType") return true

Callers 1

queriedOfMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected