mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
These typings are adequate for the primary user of di, karma-runner. The underlying project is deprecated and we will move to a new di system, but these typings help document where we are today.
16 lines
538 B
TypeScript
16 lines
538 B
TypeScript
// Type definitions for di 0.0
|
|
// Project: https://github.com/vojtajina/node-di
|
|
// Definitions by: John J Barton <https://github.com/johnjbarton>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
/// <reference types="node" />
|
|
|
|
export class Injector {
|
|
get(dep: string): {};
|
|
invoke(fn: (context: {}, deps: Array<{}>) => {}, context: {}): {};
|
|
instantiate({prototype: {}}): {};
|
|
createChild(modules: Array<{}>): Injector;
|
|
constructor(modules?: Array<{}>, parent?: Injector);
|
|
}
|