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

Function isChecker

ark/type/standalone/compilers.ts:846–849  ·  view source on GitHub ↗
(root: BaseRoot, variant: number)

Source from the content-addressed store, hash-verified

844}
845
846export const isChecker = (root: BaseRoot, variant: number): boolean =>
847 (compilers[baseVariantOf(variant)] === CombinatorCompiler ||
848 baseVariantOf(variant) === shapedForSize) &&
849 combines(root)
850
851// a unit is compiled by the variant of the root it was reached from, which
852// needn't be the one its own roots would pick

Callers 2

emitRootApplyMethod · 0.90
isCheckerInFunction · 0.85

Calls 2

combinesFunction · 0.90
baseVariantOfFunction · 0.85

Tested by

no test coverage detected