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

Function idOf

ark/schema/parse.ts:407–408  ·  view source on GitHub ↗
(node: BaseNode, $: BaseScope)

Source from the content-addressed store, hash-verified

405}
406
407const idOf = (node: BaseNode, $: BaseScope): string =>
408 node.$ === $ ? `#${node.id}` : `#${node.id}@${node.$.index}`
409
410const valueKeyOf = (v: unknown, $: BaseScope): string =>
411 isNode(v) ? idOf(v, $)

Callers 3

nodeKeyOfFunction · 0.70
idsOfFunction · 0.70
valueKeyOfFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected