From 1ce09cc46f621831feecaeef8811fe8a11dc2d85 Mon Sep 17 00:00:00 2001 From: Lauri Harpf Date: Mon, 17 May 2021 23:07:47 +0300 Subject: [PATCH] Adjust typing of ApolloServerTestClient to prevent @typescript-eslint/unbound-method linter warning by typescript-eslint --- packages/apollo-server-testing/src/createTestClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/apollo-server-testing/src/createTestClient.ts b/packages/apollo-server-testing/src/createTestClient.ts index 5aa86934cc9..159ad0a261e 100644 --- a/packages/apollo-server-testing/src/createTestClient.ts +++ b/packages/apollo-server-testing/src/createTestClient.ts @@ -23,8 +23,8 @@ type GraphQLResponse = Omit & { }; export interface ApolloServerTestClient { - query>(query: Query): Promise>; - mutate>(mutation: Mutation): Promise>; + query: >(query: Query) => Promise>; + mutate: >(mutation: Mutation) => Promise>; } export default (server: ApolloServerBase): ApolloServerTestClient => {