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

Function flatRefsAt

ark/schema/node.ts:2146–2150  ·  view source on GitHub ↗
(key: KeyOrKeyNode, node: BaseRoot)

Source from the content-addressed store, hash-verified

2144): node => (ioKind === "in" ? node._in : node._out) as never
2145
2146export const flatRefsAt = (key: KeyOrKeyNode, node: BaseRoot): FlatRef[] =>
2147 append(
2148 node.flatRefs.map(ref => flatRef([key, ...ref.path], ref.node)),
2149 flatRef([key], node)
2150 )
2151
2152export const flatRefsAreEqual = (l: FlatRef, r: FlatRef): boolean =>
2153 l.propString === r.propString && l.node.equals(r.node)

Callers 3

initFlatMethod · 0.90
initFlatFunction · 0.90
initFlatMethod · 0.90

Calls 3

appendFunction · 0.90
flatRefFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected