PURISTA API / @purista/core / ConfigStore
Interface: ConfigStore
Defined in: packages/core/src/core/ConfigStore/types/ConfigStore.ts:10
Interface definition for config store adapters
Properties
getConfig
getConfig:
ConfigGetterFunction
Defined in: packages/core/src/core/ConfigStore/types/ConfigStore.ts:19
get a config value
Param
name of config
Returns
the config
Throws
UnhandledError
name
name:
string
Defined in: packages/core/src/core/ConfigStore/types/ConfigStore.ts:12
name of store
removeConfig
removeConfig:
ConfigDeleteFunction
Defined in: packages/core/src/core/ConfigStore/types/ConfigStore.ts:34
delete a config value
Param
name of config
Throws
UnhandledError
setConfig
setConfig:
ConfigSetterFunction
Defined in: packages/core/src/core/ConfigStore/types/ConfigStore.ts:27
set a config value
Param
name of config
Param
value of config
Throws
UnhandledError
Methods
destroy()
destroy():
Promise
<void
>
Defined in: packages/core/src/core/ConfigStore/types/ConfigStore.ts:39
disconnects and shuts down the config store
Returns
Promise
<void
>