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

Method withoutKeysOf

ark/schema/structure/structure.ts:563–570  ·  view source on GitHub ↗
(r: StructureNode)

Source from the content-addressed store, hash-verified

561 }
562
563 private withoutKeysOf(r: StructureNode): Structure.Inner.mutable {
564 const result = makeRootAndArrayPropertiesMutable(this.inner)
565 if (result.required)
566 result.required = result.required.filter(prop => !(prop.key in r.byKey))
567 if (result.optional)
568 result.optional = result.optional.filter(prop => !(prop.key in r.byKey))
569 return result
570 }
571
572 private filterKeys(
573 operation: "pick" | "omit",

Callers 1

mergeMethod · 0.95

Calls 2

filterMethod · 0.80

Tested by

no test coverage detected