(changes: Changes<T>)
| 17 | } |
| 18 | |
| 19 | export function pickAfterFromChanges<T>(changes: Changes<T>): Partial<T> { |
| 20 | const after: Partial<T> = {}; |
| 21 | |
| 22 | for (const key in changes) { |
| 23 | if (changes.hasOwnProperty(key)) { |
| 24 | after[key] = changes[key]![1]; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | return after; |
| 29 | } |
| 30 | |
| 31 | export function computeChanges<T>(dataNow: T, input: Partial<T>): Changes<T> { |
| 32 | const changes: Changes<T> = {}; |
no outgoing calls
no test coverage detected