@eveble/eveble
Hierarchy
Definable
↳ Configurable
Implemented by
- AppConfig
- Config
- EvebleConfig
- LogTransportConfig
- LoggingConfig
- MongoDBCollectionConfig
- MongoDBDatabaseConfig
Index
Methods
- assign
- equals
- get
- getDefault
- getExact
- getPropTypes
- getPropertyInitializers
- has
- hasDefault
- include
- isConfigurable
- merge
- set
- toPlainObject
- validateProps
Methods
assign
▸ assign(props
: Props): void
Parameters:
Name | Type |
---|---|
props | Props |
Returns: void
▸ assign(props
: Props): void
Parameters:
Name | Type |
---|---|
props | Props |
Returns: void
equals
▸ equals(other
: any): boolean
Inherited from Definable.equals
Overrides void
Parameters:
Name | Type |
---|---|
other | any |
Returns: boolean
get
▸ get‹T›(path
: string, runtimeDefaultValue?
: any): T
Type parameters:
▪ T: any
Parameters:
Name | Type |
---|---|
path | string |
runtimeDefaultValue? | any |
Returns: T
▸ get‹T›(path
: string, runtimeDefaultValue?
: any): T
Type parameters:
▪ T: any
Parameters:
Name | Type |
---|---|
path | string |
runtimeDefaultValue? | any |
Returns: T
getDefault
▸ getDefault‹T›(path
: string): T
Type parameters:
▪ T: any
Parameters:
Name | Type |
---|---|
path | string |
Returns: T
▸ getDefault‹T›(path
: string): T
Type parameters:
▪ T: any
Parameters:
Name | Type |
---|---|
path | string |
Returns: T
getExact
▸ getExact‹T›(path
: string): T
Type parameters:
▪ T: any
Parameters:
Name | Type |
---|---|
path | string |
Returns: T
▸ getExact‹T›(path
: string): T
Type parameters:
▪ T: any
Parameters:
Name | Type |
---|---|
path | string |
Returns: T
getPropTypes
▸ getPropTypes(): Record‹keyof any, any›
Inherited from Definable.getPropTypes
Overrides void
Returns: Record‹keyof any, any›
getPropertyInitializers
▸ getPropertyInitializers(): Props
Inherited from Definable.getPropertyInitializers
Overrides void
Returns: Props
has
▸ has(path
: string): boolean
Parameters:
Name | Type |
---|---|
path | string |
Returns: boolean
▸ has(path
: string): boolean
Parameters:
Name | Type |
---|---|
path | string |
Returns: boolean
hasDefault
▸ hasDefault(path
: string): boolean
Parameters:
Name | Type |
---|---|
path | string |
Returns: boolean
▸ hasDefault(path
: string): boolean
Parameters:
Name | Type |
---|---|
path | string |
Returns: boolean
include
▸ include(config
: Configurable): void
Parameters:
Name | Type |
---|---|
config | Configurable |
Returns: void
▸ include(config
: Configurable): void
Parameters:
Name | Type |
---|---|
config | Configurable |
Returns: void
isConfigurable
▸ isConfigurable(path
: string): boolean
Parameters:
Name | Type |
---|---|
path | string |
Returns: boolean
▸ isConfigurable(path
: string): boolean
Parameters:
Name | Type |
---|---|
path | string |
Returns: boolean
merge
▸ merge(config
: Configurable): void
Parameters:
Name | Type |
---|---|
config | Configurable |
Returns: void
▸ merge(config
: Configurable): void
Parameters:
Name | Type |
---|---|
config | Configurable |
Returns: void
set
▸ set‹T›(path
: string, value
: T): void
Type parameters:
▪ T: any
Parameters:
Name | Type |
---|---|
path | string |
value | T |
Returns: void
▸ set‹T›(path
: string, value
: T): void
Type parameters:
▪ T: any
Parameters:
Name | Type |
---|---|
path | string |
value | T |
Returns: void
toPlainObject
▸ toPlainObject(): Props
Inherited from Definable.toPlainObject
Overrides void
Returns: Props
validateProps
▸ validateProps(props
: Props, propTypes
: PropTypes, isStrict?
: boolean): boolean
Inherited from Definable.validateProps
Overrides void
Parameters:
Name | Type |
---|---|
props | Props |
propTypes | PropTypes |
isStrict? | boolean |
Returns: boolean