Skip to main content

Namespace: DataStore

Functions

get

get<T>(key): T | undefined

Retrieves a keyed value from the data store.

Type parameters

NameType
Textends string | number | boolean

Parameters

NameTypeDescription
keystringA key.

Returns

T | undefined

the value stored under the key, or undefined if one could not be retrieved.

Defined in

src/sdk/data/DataStore.ts:20


remove

remove(key): void

Removes a key from the data store.

Parameters

NameTypeDescription
keystringThe key to remove.

Returns

void

Defined in

src/sdk/data/DataStore.ts:33


set

set<T>(key, value): void

Writes a keyed value to the data store.

Type parameters

NameType
Textends string | number | boolean

Parameters

NameTypeDescription
keystringA key.
valueTThe value to set.

Returns

void

Defined in

src/sdk/data/DataStore.ts:11