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

Function readName

ark/schema/units.ts:841–845  ·  view source on GitHub ↗
(id: NodeId)

Source from the content-addressed store, hash-verified

839): WrittenUnit | undefined => {
840 const namesRead = new Map<NodeId, string | undefined>()
841 const readName = (id: NodeId) => {
842 const name = s.names[id]
843 namesRead.set(id, name)
844 return name
845 }
846 const reachedRead = new Map<NodeId, BaseNode | undefined>()
847 const reachedAt = (id: NodeId) => {
848 const node = s.byId[id]?.node

Callers 1

writeComponentFunction · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected