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

Function allowsRank

ark/schema/structure/structure.ts:256–257  ·  view source on GitHub ↗
(prop: Prop.Node)

Source from the content-addressed store, hash-verified

254}
255
256const allowsRank = (prop: Prop.Node): number =>
257 prop.value.costly ? 3 : Math.max(...prop.value.branches.map(branchCost))
258
259// cheaper props first, though never across one calling user code
260const orderedForAllows = (props: array<Prop.Node>): array<Prop.Node> => {

Callers 1

flushFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected