UNPKG

power-di

Version:

A lightweight Dependency Injection library. Using es6 and other features, remove unnecessary concepts, easy and convenient to use.

8 lines (7 loc) 258 B
import { KeyType } from '../utils/types'; /** subClasses/implements inject */ export declare function imports({ type, always, }: { type: KeyType; /** always read from context. need lazy. @default false */ always?: boolean; }): PropertyDecorator;