UNPKG

1.02 kBTypeScriptView Raw
1import 'reflect-metadata';
2export type ResolverTypeFn = (of?: void) => Function;
3/**
4 * Interface defining options that can be passed to `@Resolve()` decorator
5 */
6export interface ResolverOptions {
7 /**
8 * If `true`, type will not be registered in the schema.
9 */
10 isAbstract?: boolean;
11}
12/**
13 * Object resolver decorator.
14 */
15export declare function Resolver(): MethodDecorator & ClassDecorator;
16/**
17 * Object resolver decorator.
18 */
19export declare function Resolver(name: string): MethodDecorator & ClassDecorator;
20/**
21 * Object resolver decorator.
22 */
23export declare function Resolver(options: ResolverOptions): MethodDecorator & ClassDecorator;
24/**
25 * Object resolver decorator.
26 */
27export declare function Resolver(classType: Function, options?: ResolverOptions): MethodDecorator & ClassDecorator;
28/**
29 * Object resolver decorator.
30 */
31export declare function Resolver(typeFunc: ResolverTypeFn, options?: ResolverOptions): MethodDecorator & ClassDecorator;
32//# sourceMappingURL=resolver.decorator.d.ts.map
\No newline at end of file