File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -13,25 +13,21 @@ const example: SomeExtension = {
13
13
string : 'Meaning of life' ,
14
14
} ;
15
15
16
- // FIXME: The following code block requires a version of TypeScript >= 3.2
17
- /*
18
-
19
16
declare module 'graphql' {
20
- interface GraphQLObjectTypeExtensions<TSource = any, TContext = any> {
17
+ interface GraphQLObjectTypeExtensions < _TSource = any , _TContext = any > {
21
18
someObjectExtension ?: SomeExtension ;
22
19
}
23
20
interface GraphQLFieldExtensions <
24
- TSource ,
25
- TContext ,
26
- TArgs = { [argName: string]: any }
21
+ _TSource ,
22
+ _TContext ,
23
+ _TArgs = { [ argName : string ] : any }
27
24
> {
28
25
someFieldExtension ?: SomeExtension ;
29
26
}
30
27
interface GraphQLArgumentExtensions {
31
28
someArgumentExtension ?: SomeExtension ;
32
29
}
33
30
}
34
- */
35
31
36
32
const queryType : GraphQLObjectType = new GraphQLObjectType ( {
37
33
name : 'Query' ,
You can’t perform that action at this time.
0 commit comments