-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Configuration Path and Configuration Loader Callback type aliases
- Loading branch information
Showing
1 changed file
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
/** | ||
* Configuration Items | ||
* | ||
* A general type for describing a key-value store containing configuration items | ||
* for an application or component. | ||
* A key-value store containing configuration items for an application or component. | ||
*/ | ||
export type Items = Record<PropertyKey, any>; /* eslint-disable-line @typescript-eslint/no-explicit-any */ | ||
export type Items = Record<PropertyKey, any>; /* eslint-disable-line @typescript-eslint/no-explicit-any */ | ||
|
||
/** | ||
* A [module-name](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import#modulename) from | ||
* where configuration {@link Items} are to be loaded from. | ||
*/ | ||
export type ConfigurationPath = string; | ||
|
||
/** | ||
* Callback that is responsible for loading configuration {@link Items}. | ||
*/ | ||
export type ConfigurationLoaderCallback = () => Promise<Items>; |