UNPKG

@nodeboot/di

Version:

Dependency Injection plugin for Node-Boot

8 lines 390 B
import { ComponentOptions, Constructable, Token } from "@nodeboot/context"; export type Newable<T> = (type?: never) => Constructable<T>; export interface Abstract<T> { prototype: T; } export type DiOptions = ComponentOptions | string | Token<unknown>; export type InjectionOptions<T = unknown> = string | symbol | Token<T> | Abstract<T> | Newable<T>; //# sourceMappingURL=types.d.ts.map