MCPcopy Create free account
hub / github.com/brillout/react-streaming / objectAssign

Function objectAssign

src/utils/objectAssign.ts:4–9  ·  view source on GitHub ↗
(
  obj: Obj,
  objAddendum: ObjAddendum,
)

Source from the content-addressed store, hash-verified

2
3// Same as `Object.assign()` but with type inference
4function objectAssign<Obj extends object, ObjAddendum>(
5 obj: Obj,
6 objAddendum: ObjAddendum,
7): asserts obj is Obj & ObjAddendum {
8 Object.assign(obj, objAddendum)
9}

Callers 2

getBetterErrorFunction · 0.85
createDebuggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…