-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
22 lines (22 loc) · 1022 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
* @typedef {Object<string, () => Promise<any>>} DynamicImportModules
* @typedef {Object<string, any>} StaticImportModules
* @typedef {{ resolverOptions?: import('awilix').BuildResolverOptions, formatName?: (name: string) => string }} LoadOptions
*/
/**
* @description
* @param {import('awilix').AwilixContainer} container The container where the modules should be registered
* @param {DynamicImportModules|StaticImportModules} globResult - The result of either doing import.meta.glob('/*.ts') or import.meta.glob('/*.ts', { eager: true })
* @param {LoadOptions} options
*/
export function loadModules(container: import('awilix').AwilixContainer, globResult: DynamicImportModules | StaticImportModules, options: LoadOptions): void;
export type DynamicImportModules = {
[x: string]: () => Promise<any>;
};
export type StaticImportModules = {
[x: string]: any;
};
export type LoadOptions = {
resolverOptions?: import("awilix").BuildResolverOptions<any>;
formatName?: (name: string) => string;
};