Classes
Orderly network core.DefaultConfigStore
Orderly SDKs / Modules / @orderly.network/core / DefaultConfigStore
Class: DefaultConfigStore
@orderly.network/core.DefaultConfigStore
Implements
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new DefaultConfigStore(init
)
Parameters
Name | Type |
---|---|
init | Partial <Record <ConfigKey , any >> |
Defined in
packages/core/src/configStore/defaultConfigStore.ts:31
Properties
map
• Protected
map: Map
<ConfigKey
, any
>
Defined in
packages/core/src/configStore/defaultConfigStore.ts:29
Methods
clear
▸ clear(): void
Returns
void
Implementation of
Defined in
packages/core/src/configStore/defaultConfigStore.ts:55
get
▸ get<T
>(key
): T
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
key | ConfigKey |
Returns
T
Implementation of
Defined in
packages/core/src/configStore/defaultConfigStore.ts:46
getOr
▸ getOr<T
>(key
, defaultValue
): T
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
key | ConfigKey |
defaultValue | T |
Returns
T
Implementation of
Defined in
packages/core/src/configStore/defaultConfigStore.ts:49
set
▸ set<T
>(key
, value
): void
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
key | ConfigKey |
value | T |
Returns
void