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

Method outputOf

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

Source from the content-addressed store, hash-verified

1494 // non-enumerable own prop. Nothing has written a declared key to it
1495 const unchanged = outMayBeCopied ? "data" : "out"
1496 const outputOf = (prop: Prop.Node) => {
1497 const i = transformedProps.indexOf(prop)
1498 return i === -1 ? `${unchanged}${js.prop(prop.key)}` : `transformed${i}`
1499 }
1500 const [literal, added] = this.resultLayout
1501 const literalOf = (
1502 props: array<Prop.Node>,

Callers

nothing calls this directly

Calls 1

propMethod · 0.80

Tested by

no test coverage detected