Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

Business logic with ease ☄️
Go to Latest
interface Store
implements Unit<State>
import { type Store } from "https://deno.land/x/effector@effector-react%4023.2.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