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

Function writingInPlace

ark/schema/structure/structure.ts:1751–1755  ·  view source on GitHub ↗
(node: BaseNode)

Source from the content-addressed store, hash-verified

1749// a node compiled to write in place keeps the transform that copies as its
1750// own, which is what a method reading the node would call
1751const writingInPlace = (node: BaseNode): BaseNode =>
1752 node.c.transformInPlace ?
1753 // defined, since a frozen node's own can't be assigned over
1754 Object.create(node, { tTransform: { value: node.c.transformInPlace } })
1755 : node
1756
1757const getPossibleMorph = (
1758 node: PartiallyInitializedStructure

Callers 1

tfSharedKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected