Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Business logic with ease ☄️
Latest
interface StoreWritable
import { type StoreWritable } from "https://deno.land/x/effector@effector-vue%4023.1.0/packages/effector/index.d.ts";

Properties

kind: "store"
readonly
____: StoreValueType<State>
reinit: EventCallable<void>

Methods

on<E>(trigger: Unit<E>, reducer: (state: State, payload: E) => State | void): this
on<E>(triggers: Unit<E>[], reducer: (state: State, payload: E) => State | void): this
on<E extends Tuple<Unit<any>>>(triggers: E, reducer: (state: State, payload: InferValueFromTupleOfUnits<E>) => State | void): this
off(trigger: Unit<any>): this
reset(...triggers: Array<Unit<any>>): this
reset(triggers: Array<Unit<any>>): this