Skip to content

Commit 99c0c87

Browse files
committed
TS: Enable integrations tests for extending GraphQL*Extensions types
1 parent 995ea3a commit 99c0c87

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

integrationTests/ts/index.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,21 @@ const example: SomeExtension = {
1313
string: 'Meaning of life',
1414
};
1515

16-
// FIXME: The following code block requires a version of TypeScript >= 3.2
17-
/*
18-
1916
declare module 'graphql' {
20-
interface GraphQLObjectTypeExtensions<TSource = any, TContext = any> {
17+
interface GraphQLObjectTypeExtensions<_TSource = any, _TContext = any> {
2118
someObjectExtension?: SomeExtension;
2219
}
2320
interface GraphQLFieldExtensions<
24-
TSource,
25-
TContext,
26-
TArgs = { [argName: string]: any }
21+
_TSource,
22+
_TContext,
23+
_TArgs = { [argName: string]: any }
2724
> {
2825
someFieldExtension?: SomeExtension;
2926
}
3027
interface GraphQLArgumentExtensions {
3128
someArgumentExtension?: SomeExtension;
3229
}
3330
}
34-
*/
3531

3632
const queryType: GraphQLObjectType = new GraphQLObjectType({
3733
name: 'Query',

0 commit comments

Comments
 (0)