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

Function lazilyResolve

ark/schema/scope.ts:517–530  ·  view source on GitHub ↗
(
		resolve: () => BaseRoot,
		reference: string = registerNodeId("synthetic"),
		operator?: string,
		operands?: readonly BaseRoot[]
	)

Source from the content-addressed store, hash-verified

515 }
516
517 lazilyResolve(
518 resolve: () => BaseRoot,
519 reference: string = registerNodeId("synthetic"),
520 operator?: string,
521 operands?: readonly BaseRoot[]
522 ): Alias.Node {
523 return this.node(
524 "alias",
525 operator && operands ?
526 { reference, resolve, operator, operands }
527 : { reference, resolve },
528 { reduced: true }
529 )
530 }
531
532 schema = (schema: RootSchema, opts?: BaseParseOptions): BaseRoot =>
533 this.fin(parseSchema(schema, this, opts))

Callers

nothing calls this directly

Calls 2

registerNodeIdFunction · 0.90
nodeMethod · 0.80

Tested by

no test coverage detected