Constructor
new ConfigurationProperties(defaultProperties, prefix, fs)
The constructor is for internal use. Use the factory methods instead.
Parameters:
Name | Type | Description |
---|---|---|
defaultProperties |
T | |
prefix |
string | |
fs |
fsPromises |
- See:
-
- ConfigurationProperties.create
- ConfigurationProperties.createNull
Methods
(async) get() → {Promise.<T>}
Loads the configuration from the file.
Returns:
The configuration object.
- Type
- Promise.<T>
(static) create(options) → {ConfigurationProperties.<T>}
Creates an instance of the application configuration.
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | The configuration options. Properties
|
Returns:
The new instance.
- Type
- ConfigurationProperties.<T>
(static) createNull(options) → {ConfigurationProperties.<T>}
Creates a nullable of the application configuration.
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | The configuration options. Properties
|
Returns:
The new instance.
- Type
- ConfigurationProperties.<T>