(r: StructureNode)
| 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", |
no test coverage detected