Skip to content

Commit d8878f6

Browse files
author
Julien Heller
committed
Add asyncInitialization option to ServiceOptions
1 parent 2069ccc commit d8878f6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/types/ServiceOptions.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@ export interface ServiceOptions<T, K extends keyof T> {
3333
*/
3434
factory?: [ObjectType<T>, K]|((...params: any[]) => any);
3535

36-
}
36+
/**
37+
* Will call instance's #initialize method and resolve the promise it returns when getting with Container.getAsync() and Container.getManyAsync().
38+
*/
39+
asyncInitialization?: boolean;
40+
}

0 commit comments

Comments
 (0)