UNPKG

@miracledevs/paradigm-web-di

Version:

A minimal dependency injection library for the web

10 lines (9 loc) 433 B
import { ObjectType } from "./object-type"; import { DependencyLifeTime } from "./dependency-life-time"; import { DependencyCollection } from "./dependency-collection"; import 'reflect-metadata'; export interface IInjectableDescriptor { lifeTime?: DependencyLifeTime; collection?: DependencyCollection; } export declare function Injectable(descriptor?: IInjectableDescriptor): <T>(component: ObjectType<T>) => void;