Class: UserConfig
Helper class to add and manage configuration to your actor. Saves and loads all values to a KVStore with JSON encoding.
Table of contents
Constructors
Methods
Constructors
constructor
• new UserConfig(storage?)
Parameters
| Name | Type | Description |
|---|---|---|
storage | KVStore | provide a custom KVStore or use the system default |
Methods
builder
▸ builder(): ConfigFormBuilder
Returns
get
▸ get(key): Promise<unknown>
Retrieve a value from user configuration
Parameters
| Name | Type |
|---|---|
key | string |
Returns
Promise<unknown>