Skip to content

PURISTA API


PURISTA API / @purista/core / StateGetterFunction

Type Alias: StateGetterFunction()

StateGetterFunction = <StateNames>(...stateNames) => Promise<ObjectWithKeysFromStringArray<StateNames>>

Defined in: packages/core/src/core/StateStore/types/StateGetterFunction.ts:4

get a state value from the state store

Type Parameters

StateNames

StateNames extends string[]

Parameters

stateNames

...StateNames

Returns

Promise<ObjectWithKeysFromStringArray<StateNames>>