import { restore } from "https://dotland.deno.dev/x/effector@effector-vue%4023.1.0/packages/effector/index.d.ts";
Creates a Store out of successful results of Effect.
It works like a shortcut for createStore(defaultState).on(effect.done, (_, {result}) => result)
Creates a Store out of successful results of Effect.
It works like a shortcut for createStore(defaultState).on(effect.done, (_, {result}) => result)
Returns
StoreWritable<Done | null>
Creates a Store from Event.
It works like a shortcut for createStore(defaultState).on(event, (_, payload) => payload)
Creates a Store from Event.
It works like a shortcut for createStore(defaultState).on(event, (_, payload) => payload)
Returns
StoreWritable<E | null>
Type Parameters
State extends { [key: string]: Store<any> | any; }
Parameters
state: State
Returns
[K in keyof State]: State[K] extends Store<infer S> ? StoreWritable<S> : StoreWritable<State[K]>