Store class

Signature:

export declare class Store<State> extends Augmented 

Extends: Augmented

Constructors

Constructor

Modifiers

Description

(constructor)(_state)

Constructs a new instance of the Store class

Properties

Property

Modifiers

Type

Description

getState

() => State

notify

() => void

state

readonly

State

subscribe

(cb: Callback) => () => void

update

(newState: Partial<State>) => void