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

Function changingIn

ark/aot/settingsValidators.ts:708–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707var isDefaulted = ({ d, w }) => !!(w || d?.length)
708var changingIn = declared => {
709 const changing = {}
710 for (const k in declared) {
711 const { t, d, w } = declared[k]
712 if (t || w || d?.length) changing[k] = declared[k]
713 }
714 return changing
715}
716var writtenValues = (declared, changing, data, values) => {
717 let out = data
718 let defaults = false

Callers 2

sitedPropsFunction · 0.70
sitedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected