Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions integrationTests/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,21 @@ const example: SomeExtension = {
string: 'Meaning of life',
};

// FIXME: The following code block requires a version of TypeScript >= 3.2
/*

declare module 'graphql' {
interface GraphQLObjectTypeExtensions<TSource = any, TContext = any> {
interface GraphQLObjectTypeExtensions<_TSource = any, _TContext = any> {
someObjectExtension?: SomeExtension;
}
interface GraphQLFieldExtensions<
TSource,
TContext,
TArgs = { [argName: string]: any }
_TSource,
_TContext,
_TArgs = { [argName: string]: any }
> {
someFieldExtension?: SomeExtension;
}
interface GraphQLArgumentExtensions {
someArgumentExtension?: SomeExtension;
}
}
*/

const queryType: GraphQLObjectType = new GraphQLObjectType({
name: 'Query',
Expand Down