(declared: Props)
| 872 | |
| 873 | // the keys a shape transforms or defaults, the only ones that can change data |
| 874 | const 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 |
no outgoing calls
no test coverage detected