@envelop/types
Advanced tools
Comparing version 1.1.0-alpha-53d0475.0 to 1.1.0-alpha-dc06203.0
@@ -413,2 +413,7 @@ import type { DocumentNode, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLResolveInfo, GraphQLSchema, ParseOptions, Source, SubscriptionArgs, ValidationRule } from 'graphql'; | ||
export declare type SubscribeResultHook = (options: OnSubscribeResultEventPayload) => void | OnSubscribeResultResult; | ||
export declare type SubscribeErrorHookPayload = { | ||
error: unknown; | ||
setError: (err: unknown) => void; | ||
}; | ||
export declare type SubscribeErrorHook = (payload: SubscribeErrorHookPayload) => void; | ||
export declare type OnSubscribeHookResult<ContextType> = { | ||
@@ -420,2 +425,6 @@ /** | ||
/** | ||
* Invoked if the source stream returned from subscribe throws an error. | ||
*/ | ||
onSubscribeError?: SubscribeErrorHook; | ||
/** | ||
* Invoked before each resolver has been invoked during the execution phase. | ||
@@ -422,0 +431,0 @@ */ |
{ | ||
"name": "@envelop/types", | ||
"version": "1.1.0-alpha-53d0475.0", | ||
"version": "1.1.0-alpha-dc06203.0", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
26389
660