Skip to content

Commit 155944b

Browse files
committed
fix(utils): revert breaking change - missing PromiseWithResolvers
1 parent 3f1c809 commit 155944b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.changeset/eight-bags-drum.md

+5
Original file line numberDiff line numberDiff line change
@@ -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

+6
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,9 @@ export type SchemaExtensions = {
150150

151151
export type DirectiveArgs = { [name: string]: any };
152152
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

Comments
 (0)