UNPKG

mana-syringe

Version:

IoC library for mana, easily to use.

16 lines (15 loc) 376 B
import { Syringe } from '../core'; export declare type Option = { /** * collected from the parent containers */ recursive?: boolean; /** * use cache */ cache?: boolean; }; export declare type Provider<T extends Record<string, any>> = { getContributions: (option?: Option) => T[]; }; export declare const Provider: Syringe.DefinedToken;