Skip to content

API reference > @kontsedal/olas-svelte > MutationStore

MutationStore type ​

What mutationStore returns: a store of the mutation's state, plus its triggers.

Signature:

typescript
export type MutationStore<V, R> = ReadSignal<MutationState<V, R>> & {
  mutate: MutateFn<V>;
  run: MutationRun<V, R>;
  reset: () => void;
};

References: ReadSignal, MutationState, MutateFn, MutationRun

Released under the MIT License.