1 | import "reflect-metadata";
|
2 | import { IDefinition } from "./types";
|
3 | export declare const META_INJECT: unique symbol;
|
4 | export declare const META_PARAMETERS_INJECT: unique symbol;
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export declare function getTarget(value: any): FunctionConstructor;
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export declare function hasDefinition(value: Function): boolean;
|
15 | export declare function emitTypes(): (target: any, method: string) => null;
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare function getInitialDefinition(target: Function, context?: any): IDefinition;
|
21 |
|
22 |
|
23 |
|
24 | export declare function getDefinition(value: any, context?: any): IDefinition;
|
25 |
|
26 |
|
27 |
|
28 | export declare function setDefinition(value: any, definition: Partial<IDefinition>): IDefinition;
|
29 | export declare function extendDefinition(value: any, definition: Partial<IDefinition>): IDefinition;
|
30 | export interface IPropertyInjectionOptions {
|
31 | lateBinding?: boolean;
|
32 | }
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | export declare function Inject(services: (Function | string)[]): ClassDecorator;
|
40 | export declare function Inject(service?: Function | string, options?: IPropertyInjectionOptions): any;
|
41 | export declare function Tag(...tags: string[]): (target: Function) => void;
|
42 | export declare function Service(definition?: Partial<IDefinition> | string): (target: Function) => void;
|