UNPKG

vue-di-container

Version:
11 lines (10 loc) 641 B
export declare type Ctor<T> = new (...args: any[]) => T; export declare type Func<T> = (...args: any[]) => T; export declare function decorator(decorate: { class?: <T>(cls: Ctor<T>) => Ctor<T> | void; property?: (cls: Ctor<any>, name: string | symbol) => void; method?: <T>(cls: Ctor<any>, name: string | symbol, descr: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void; parameter?: (cls: Ctor<any>, name: string | symbol, index: number) => void; ctorParameter?: (cls: Ctor<any>, index: number) => void; else?: () => void; }): ClassDecorator & PropertyDecorator & MethodDecorator & ParameterDecorator;