UNPKG

253 BTypeScriptView Raw
1export interface FactoryDefinition<T> {
2 create(injections?: object): T;
3 teardown?(instance: object): void;
4}
5export interface Factory<T> {
6 class: FactoryDefinition<T>;
7 create(injections?: object): T;
8 teardown(instance: any): void;
9}