Orderly SDKs / Modules / @orderly.network/core / DefaultConfigStore
@orderly.network/core.DefaultConfigStore
• new DefaultConfigStore(init
)
Name | Type |
---|---|
init | Partial <Record <ConfigKey , any >> |
packages/core/src/configStore/defaultConfigStore.ts:31
• Protected
map: Map
<ConfigKey
, any
>
packages/core/src/configStore/defaultConfigStore.ts:29
▸ clear(): void
void
packages/core/src/configStore/defaultConfigStore.ts:55
▸ get<T
>(key
): T
Name |
---|
T |
Name | Type |
---|---|
key | ConfigKey |
T
packages/core/src/configStore/defaultConfigStore.ts:46
▸ getOr<T
>(key
, defaultValue
): T
Name |
---|
T |
Name | Type |
---|---|
key | ConfigKey |
defaultValue | T |
T
packages/core/src/configStore/defaultConfigStore.ts:49
▸ set<T
>(key
, value
): void
Name |
---|
T |
Name | Type |
---|---|
key | ConfigKey |
value | T |
void
packages/core/src/configStore/defaultConfigStore.ts:52