@types/di
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Installation

npm install --save @types/di

Summary

This package contains type definitions for di (https://github.com/vojtajina/node-di).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/di.

index.d.ts

export class Injector {
    get(dep: string): {};
    invoke(fn: (context: {}, deps: Array<{}>) => {}, context: {}): {};
    instantiate({ prototype: {} }): {};
    createChild(modules: Array<{}>): Injector;
    constructor(modules?: Array<{}>, parent?: Injector);
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by John J Barton.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/di

Weekly Downloads

4,359

Version

0.0.4

License

MIT

Unpacked Size

3.02 kB

Total Files

5

Last publish

Collaborators

  • types