diff --git a/packages/contracts/src/config/types.ts b/packages/contracts/src/config/types.ts index 0d97e44b..c5324939 100644 --- a/packages/contracts/src/config/types.ts +++ b/packages/contracts/src/config/types.ts @@ -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; /* eslint-disable-line @typescript-eslint/no-explicit-any */ \ No newline at end of file +export type Items = Record; /* 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; \ No newline at end of file