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

Function changingIn

ark/type/checkers.ts:874–881  ·  view source on GitHub ↗
(declared: Props)

Source from the content-addressed store, hash-verified

872
873// the keys a shape transforms or defaults, the only ones that can change data
874const changingIn = (declared: Props): Props => {
875 const changing: Props = {}
876 for (const k in declared) {
877 const { t, d, w } = declared[k]
878 if (t || w || d?.length) changing[k] = declared[k]
879 }
880 return changing
881}
882
883// what props write where something can fail: each transform runs first, and a
884// default only where none failed

Callers 2

checkers.tsFile · 0.70
transformsFailingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected