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

NameType
initPartial<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

ConfigStore.clear

Defined in

packages/core/src/configStore/defaultConfigStore.ts:55


get

get<T>(key): T

Type parameters

Name
T

Parameters

NameType
keyConfigKey

Returns

T

Implementation of

ConfigStore.get

Defined in

packages/core/src/configStore/defaultConfigStore.ts:46


getOr

getOr<T>(key, defaultValue): T

Type parameters

Name
T

Parameters

NameType
keyConfigKey
defaultValueT

Returns

T

Implementation of

ConfigStore.getOr

Defined in

packages/core/src/configStore/defaultConfigStore.ts:49


set

set<T>(key, value): void

Type parameters

Name
T

Parameters

NameType
keyConfigKey
valueT

Returns

void

Implementation of

ConfigStore.set

Defined in

packages/core/src/configStore/defaultConfigStore.ts:52