Interfaces · @purista/core

StateStore

Interface definition for state store implementations

Signature

StateStore.ts typescript
interface StateStore

Properties

4 entries

getState

Property

Source
getState.ts typescript
getState: StateGetterFunction

get a state value

name

Property

Source
name.ts typescript
name: string

name of store

removeState

Property

Source
removeState.ts typescript
removeState: StateDeleteFunction

delete a state value

setState

Property

Source
setState.ts typescript
setState: StateSetterFunction

set a state value

Methods

1 entry

destroy

Method

Source
destroy.ts typescript
destroy(): Promise<void>

disconnects and shuts down the state store