We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PromiseWithResolvers
1 parent 3f1c809 commit 155944bCopy full SHA for 155944b
.changeset/eight-bags-drum.md
@@ -0,0 +1,5 @@
1
+---
2
+'@graphql-tools/utils': patch
3
4
+
5
+Fix breaking change by adding `PromiseWithResolvers` back
packages/utils/src/types.ts
@@ -150,3 +150,9 @@ export type SchemaExtensions = {
150
151
export type DirectiveArgs = { [name: string]: any };
152
export type DirectiveUsage = { name: string; args: DirectiveArgs };
153
154
+export interface PromiseWithResolvers<T> {
155
+ promise: Promise<T>;
156
+ resolve: (value: T | PromiseLike<T>) => void;
157
+ reject: (reason?: any) => void;
158
+}
0 commit comments