Type alias ObjectPatch<S>

ObjectPatch<S>: { [ K in Extract<keyof S, string>]?: S[K] | Patch<S[K]> | ((a: S[K]) => S[K] | null | undefined) | null }

A Mergerino object patch. This is an object that contains updates to state properties.

Example:

update({ count: 42 });

Type Parameters

  • S

    the State type.

Generated using TypeDoc