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

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

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

Creates a store

Type Parameters

State
optional
SerializedState extends Json = Json

Parameters

defaultState: State

default state

optional
config: { skipVoid?: boolean; name?: string; sid?: string; updateFilter?: (update: State, current: State) => boolean; serialize?: "ignore" | { write: (state: State) => SerializedState; read: (json: SerializedState) => State; }; domain?: Domain; }

optional configuration object