MCPcopy Index your code
hub / github.com/arktypeio/arktype / flatRef

Function flatRef

ark/schema/node.ts:799–806  ·  view source on GitHub ↗
(
	path: array<KeyOrKeyNode>,
	node: node
)

Source from the content-addressed store, hash-verified

797 JSON.stringify(metaJson).replace(referenceMatcher, "$1")
798
799export const flatRef = <node extends BaseRoot>(
800 path: array<KeyOrKeyNode>,
801 node: node
802): FlatRef<node> => ({
803 path,
804 node,
805 propString: typePathToPropString(path)
806})
807
808export const flatRefsAreEqual = (l: FlatRef, r: FlatRef): boolean =>
809 l.propString === r.propString && l.node.equals(r.node)

Callers 3

IndexNodeClass · 0.90
prop.tsFile · 0.90
addFlatRefsMethod · 0.90

Calls 1

typePathToPropStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…