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

Function written

ark/aot/settingsValidators.ts:790–794  ·  view source on GitHub ↗
(data, values)

Source from the content-addressed store, hash-verified

788 : writtenProps(declared, changing, data)
789 const keeps = sitedKeeps(declared, checkers, write, fallback)
790 const written = (data, values) =>
791 writes < 3 ? keeps(data, values)
792 : Object.getPrototypeOf(data) === Object.prototype ?
793 write(data, checkers, values, copyOf)
794 : deletes(declared, data, fallback(data, values))
795 checker.t =
796 writes % 2 ?
797 data => written(data)

Callers 2

sitedPropsFunction · 0.70
sitedFunction · 0.70

Calls 3

writeFunction · 0.70
deletesFunction · 0.70
fallbackFunction · 0.70

Tested by

no test coverage detected