Module

x/effector/packages/effector/index.d.ts>Store

Business logic with ease ☄️
Latest
interface Store
implements Unit<State>
import { type Store } from "https://dotland.deno.dev/x/effector@effector-vue%4023.1.0/packages/effector/index.d.ts";

Properties

kind: "store"
updates: Event<State>
defaultState: State
compositeName: CompositeName
shortName: string
sid: string | null

Methods

map<T>(fn: (state: State) => T, config?: { skipVoid?: boolean; }): Store<T>
getState(): State
subscribe(listener: Observer<State> | ((state: State) => any)): Subscription
watch<E>(watcher: (state: State, payload: undefined) => any): Subscription
watch<E>(trigger: Unit<E>, watcher: (state: State, payload: E) => any): Subscription
deprecated
thru<U>(fn: (store: Store<State>) => U): U