UNPKG

inversify

Version:

A powerful and lightweight inversion of control container for JavaScript and Node.js apps powered by TypeScript.

14 lines (13 loc) 635 B
import interfaces from "../interfaces/interfaces"; declare class Lookup<T extends interfaces.Clonable<T>> implements interfaces.Lookup<T> { private _dictionary; constructor(); add(serviceIdentifier: interfaces.ServiceIdentifier<any>, value: T): void; get(serviceIdentifier: interfaces.ServiceIdentifier<any>): Array<T>; remove(serviceIdentifier: interfaces.ServiceIdentifier<any>): void; removeByModuleId(moduleId: string): void; hasKey(serviceIdentifier: interfaces.ServiceIdentifier<any>): boolean; clone(): interfaces.Lookup<T>; private getIndexByKey(serviceIdentifier); } export default Lookup;