Skip to content

@ralphschuler.state store.utils.createStateStore.util

github-actions edited this page Nov 26, 2023 · 1 revision

Module: utils/createStateStore.util

Table of contents

Functions

Functions

createStateStore

createStateStore<StateType>(state): StateStore<StateType>

Factory function for creating a new StateStore.

Type parameters

Name Type Description
StateType extends StateProperties The type of the state to be managed by the store.

Parameters

Name Type Description
state StateType Initial state of the store.

Returns

StateStore<StateType>

A new StateStore instance.

Defined in

utils/createStateStore.util.ts:9

Typescript Libraries

Modules

Namespaces

Clone this wiki locally