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

Function precompileRootUnits

ark/schema/units.ts:765–768  ·  view source on GitHub ↗
(
	root: BaseRoot,
	opts: UnitOptions = {}
)

Source from the content-addressed store, hash-verified

763}
764
765export const precompileRootUnits = (
766 root: BaseRoot,
767 opts: UnitOptions = {}
768): RootUnit[] => unitsOf(nameContent([root], opts), opts)
769
770interface UnitOptions {
771 keyOf?: ContentKeyOf

Callers 4

rootUnitsOfFunction · 0.90
emitFunction · 0.90
namesOfFunction · 0.90
writePrecompiledUnitsFunction · 0.85

Calls 2

nameContentFunction · 0.85
unitsOfFunction · 0.70

Tested by 2

emitFunction · 0.72
namesOfFunction · 0.72