Function: applyStateDelta()¶
applyStateDelta(
state,delta):ThreadState|null
Defined in: src/state.ts:15
Apply a STATE_DELTA's JSON Patch to a state value without mutating it. A
patch that does not apply leaves the state as it was.
Parameters¶
state¶
ThreadState | null
The state before the delta.
delta¶
unknown
The delta's JSON Patch operations.
Returns¶
ThreadState | null
The state after the delta.