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

Function flatRef

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

Source from the content-addressed store, hash-verified

2130 })
2131
2132export const flatRef = <node extends BaseRoot>(
2133 path: array<KeyOrKeyNode>,
2134 node: node
2135): FlatRef<node> => ({
2136 path,
2137 node,
2138 propString: typePathToPropString(path)
2139})
2140
2141export const ioOf = <node extends BaseNode>(
2142 node: node,

Callers 1

flatRefsAtFunction · 0.85

Calls 1

typePathToPropStringFunction · 0.85

Tested by

no test coverage detected