( obj: Obj, objAddendum: ObjAddendum, )
| 2 | |
| 3 | // Same as `Object.assign()` but with type inference |
| 4 | function objectAssign<Obj extends object, ObjAddendum>( |
| 5 | obj: Obj, |
| 6 | objAddendum: ObjAddendum, |
| 7 | ): asserts obj is Obj & ObjAddendum { |
| 8 | Object.assign(obj, objAddendum) |
| 9 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…