We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7158830 commit 1c2cee6Copy full SHA for 1c2cee6
src/execution/__tests__/union-interface-test.ts
@@ -168,12 +168,14 @@ const TypeA = new GraphQLObjectType({
168
id: { type: GraphQLString },
169
nameA: { type: GraphQLString },
170
}),
171
- isTypeOf: (_value, _context, _info) => {
172
- return new Promise((_resolve, reject) => {
173
- setTimeout(() => {
174
- reject(new Error('TypeA_isTypeOf_rejected'));
175
- }, 10);
176
- });
+ isTypeOf: (_value, _context, _info) =>
+ new Promise(
+ (_resolve, reject) =>
+ void setTimeout(
+ () => void reject(new Error("TypeA_isTypeOf_rejected")),
+ 10,
177
+ ),
178
179
},
180
});
181
0 commit comments