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) 506 B
export declare const addClassMeta: <T>(key: string | symbol, mapFn: (prev: T | undefined) => T) => ClassDecorator; export declare function getClassMeta<T>(target: object, key: string | symbol): T | undefined; export declare const addClassLabel: (key: string, label: string) => ClassDecorator; export declare const getClassLabels: (target: object) => Map<string, string>; export declare const addClassTag: (tag: string) => ClassDecorator; export declare const getClassTags: (target: object) => Set<string>;