@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.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    3,962
  • 0.0.3
    1
  • 0.0.2
    2
  • 0.0.1
    22,213
  • 0.0.0
    68

Package Sidebar

Install

npm i @types/di

Weekly Downloads

4,085

Version

0.0.4

License

MIT

Unpacked Size

3.02 kB

Total Files

5

Last publish

Collaborators

  • types