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>StoreWritable

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