Interfaces · @purista/core

StateStore

Interface definition for state store implementations

Signature

StateStore.tstypescript
interface StateStore

Properties

4 entries

getState

Property

Source
getState.tstypescript
getState: StateGetterFunction

get a state value

name

Property

Source
name.tstypescript
name: string

name of store

removeState

Property

Source
removeState.tstypescript
removeState: StateDeleteFunction

delete a state value

setState

Property

Source
setState.tstypescript
setState: StateSetterFunction

set a state value

Methods

1 entry

destroy

Method

Source
destroy.tstypescript
destroy(): Promise<void>

disconnects and shuts down the state store