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

Method writesInto

ark/schema/structure/structure.ts:966–968  ·  view source on GitHub ↗
(ctx: { inPlace?: boolean } | undefined)

Source from the content-addressed store, hash-verified

964
965 // a structure deleting undeclared keys copies what it writes
966 private writesInto(ctx: { inPlace?: boolean } | undefined): boolean {
967 return !!ctx?.inPlace && this.undeclared !== "delete"
968 }
969
970 private copy(data: object, copy = copyOf(data)): object {
971 if (this.sequence) {

Callers 4

tTransformMethod · 0.95
applyStructMorphMethod · 0.95
jsCopyMethod · 0.95
jsDeclaredCopyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected