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

Function withBoundUnit

ark/schema/parse.ts:237–240  ·  view source on GitHub ↗
(node: BaseNode, unit: BoundUnit)

Source from the content-addressed store, hash-verified

235}
236
237const withBoundUnit = (node: BaseNode, unit: BoundUnit): BaseNode =>
238 node.$.node(node.kind, { ...node.inner, unit, meta: node.meta } as never, {
239 reduced: true
240 })
241
242// children after other values, in order of precedence
243export const compareInnerKeys = (l: string, r: string): number =>

Callers 1

attachBoundUnitsFunction · 0.85

Calls 1

nodeMethod · 0.80

Tested by

no test coverage detected