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

Function _tfContext

ark/schema/node.ts:1385–1401  ·  view source on GitHub ↗

the context a transform starts with

(
		opts: DeepNodeTransformOptions | undefined
	)

Source from the content-addressed store, hash-verified

1383
1384 /** the context a transform starts with */
1385 protected _tfContext(
1386 opts: DeepNodeTransformOptions | undefined
1387 ): DeepNodeTransformContext {
1388 return {
1389 root: this,
1390 selected: undefined,
1391 seen: {},
1392 path: [],
1393 parseOptions: {
1394 reduced: opts?.reduced ?? false
1395 },
1396 undeclaredHandling: undefined,
1397 throughAliases: isResolutionFinal(),
1398 synth: {},
1399 ...opts
1400 }
1401 }
1402
1403 /** transforms it and the nodes it holds with mapper, returning null to remove it */
1404 protected _tf(

Callers

nothing calls this directly

Calls 1

isResolutionFinalFunction · 0.90

Tested by

no test coverage detected