tsoa
This commit is contained in:
7
node_modules/@tsoa/runtime/dist/interfaces/iocModule.d.ts
generated
vendored
Normal file
7
node_modules/@tsoa/runtime/dist/interfaces/iocModule.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export type Newable<T = unknown, TArgs extends unknown[] = any[]> = new (...args: TArgs) => T;
|
||||
export type ServiceIdentifier<T = unknown> = string | symbol | Newable<T> | Function;
|
||||
export interface IocContainer {
|
||||
get<T>(controller: ServiceIdentifier<T>): T;
|
||||
get<T>(controller: ServiceIdentifier<T>): Promise<T>;
|
||||
}
|
||||
export type IocContainerFactory<T = any> = (request: T) => IocContainer;
|
||||
Reference in New Issue
Block a user