UNPKG

ts-ioc-container

Version:

Fast, lightweight TypeScript dependency injection container with a clean API, scoped lifecycles, decorators, tokens, hooks, lazy injection, customizable providers, and no global container objects.

7 lines (6 loc) 552 B
export declare const addMethodMeta: <T>(key: string, mapFn: (prev: T | undefined) => T) => MethodDecorator; export declare const getMethodMeta: (key: string, target: object, propertyKey: string) => unknown; export declare const addMethodLabel: (key: string, label: string) => MethodDecorator; export declare const getMethodLabels: (target: object, propertyKey: string) => Map<string, string>; export declare const addMethodTag: (tag: string) => MethodDecorator; export declare const getMethodTags: (target: object, propertyKey: string) => Set<string>;