Namespace: DataStore
Functions
get
▸ get<T
>(key
): T
| undefined
Retrieves a keyed value from the data store.
Type parameters
Name | Type |
---|---|
T | extends string | number | boolean |
Parameters
Name | Type | Description |
---|---|---|
key | string | A 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
Name | Type | Description |
---|---|---|
key | string | The 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
Name | Type |
---|---|
T | extends string | number | boolean |
Parameters
Name | Type | Description |
---|---|---|
key | string | A key. |
value | T | The value to set. |
Returns
void
Defined in
src/sdk/data/DataStore.ts:11