File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
packages/legacy/types/src Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @graphql-mesh/types ' : patch
3
+ ---
4
+
5
+ Fix compatibility between MeshPlugin and GatewayPlugin
Original file line number Diff line number Diff line change @@ -154,14 +154,11 @@ export type OnDelegateHookDonePayload = {
154
154
155
155
export type OnDelegateHookDone = ( payload : OnDelegateHookDonePayload ) => PromiseOrValue < void > ;
156
156
157
- interface AsyncDisposable {
158
- [ Symbol . asyncDispose ] ( ) : PromiseLike < void > ;
159
- }
160
-
161
157
export type MeshPlugin < TContext > = Plugin < TContext > & {
162
158
onFetch ?: OnFetchHook < TContext > ;
163
159
onDelegate ?: OnDelegateHook < TContext > ;
164
- } & Partial < AsyncDisposable > ;
160
+ [ Symbol . asyncDispose ] ?: ( ) => PromiseLike < void > | void ;
161
+ } ;
165
162
166
163
export type MeshFetch = (
167
164
url : string ,
You can’t perform that action at this time.
0 commit comments