Skip to main content
Version: 0.9

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

NameTypeDescription
storageKVStoreprovide a custom KVStore or use the system default

Methods

builder

builder(): ConfigFormBuilder

Returns

ConfigFormBuilder


get

get(key): Promise<unknown>

Retrieve a value from user configuration

Parameters

NameType
keystring

Returns

Promise<unknown>