Skip to content

Commit 2a9a37c

Browse files
saihajIvanGoncharov
authored andcommitted
isPromise workaround
1 parent 7e8e07f commit 2a9a37c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/mutation/mutation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export function mutationWithClientMutationId(
9191
const { clientMutationId } = input;
9292
const payload = mutateAndGetPayload(input, context, info);
9393
if (isPromise(payload)) {
94-
// @ts-expect-error FIXME
94+
// @ts-expect-error update to 16.x.x should fix this
9595
return payload.then(injectClientMutationId);
9696
}
9797
return injectClientMutationId(payload);

src/mutation/type.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
// Remove after update to 16.x.x
12
// eslint-disable-next-line import/unambiguous
23
declare module 'graphql/jsutils/isPromise';

0 commit comments

Comments
 (0)