UNPKG

ts-ioc-container

Version:
8 lines (7 loc) 634 B
import type { constructor } from './utils'; export declare const setMetadata: <T>(key: string | symbol, value: T) => ClassDecorator; export declare function getMetadata<T>(target: object, key: string | symbol): T | undefined; export declare const setParameterMetadata: (key: string | symbol, value: unknown) => ParameterDecorator; export declare const getParameterMetadata: (key: string | symbol, target: constructor<unknown>) => unknown[]; export declare const setMethodMetadata: (key: string, value: unknown) => MethodDecorator; export declare const getMethodMetadata: (key: string, target: object, propertyKey: string) => unknown;