1 | import { Complexity, FieldMiddleware } from '../interfaces';
|
2 | import { BaseTypeOptions } from '../interfaces/base-type-options.interface';
|
3 | import { ReturnTypeFunc } from '../interfaces/return-type-func.interface';
|
4 |
|
5 |
|
6 |
|
7 | export type ResolveFieldOptions<T = any> = BaseTypeOptions<T> & {
|
8 | |
9 |
|
10 |
|
11 | name?: string;
|
12 | |
13 |
|
14 |
|
15 | description?: string;
|
16 | |
17 |
|
18 |
|
19 | deprecationReason?: string;
|
20 | |
21 |
|
22 |
|
23 | complexity?: Complexity;
|
24 | |
25 |
|
26 |
|
27 | middleware?: FieldMiddleware[];
|
28 | };
|
29 |
|
30 |
|
31 |
|
32 | export declare function ResolveField(typeFunc?: ReturnTypeFunc, options?: ResolveFieldOptions): MethodDecorator;
|
33 |
|
34 |
|
35 |
|
36 | export declare function ResolveField(propertyName?: string, typeFunc?: ReturnTypeFunc, options?: ResolveFieldOptions): MethodDecorator;
|
37 |
|
\ | No newline at end of file |