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

Function simulatedEntriesOf

ark/schema/node.ts:1800–1807  ·  view source on GitHub ↗
(node: BaseNode)

Source from the content-addressed store, hash-verified

1798 : node.variadic!
1799
1800const simulatedEntriesOf = (node: BaseNode): BaseNode["kv"] =>
1801 node.is("sequence") && node.inner.minVariadicLength ?
1802 node.kv.filter(([k]) => k !== "minVariadicLength")
1803 : node.is("structure") && node.inner.order ?
1804 node.kv.filter(([k]) => k !== "order")
1805 : node.kind !== "unit" && "unit" in node.inner ?
1806 node.kv.filter(([k]) => k !== "unit")
1807 : node.kv
1808
1809let isSubsuming = false
1810

Callers 1

isSimulatedFunction · 0.85

Calls 2

isMethod · 0.80
filterMethod · 0.80

Tested by

no test coverage detected