@envelop/types
Advanced tools
Comparing version 0.4.0 to 0.4.1-alpha-127d311.0
@@ -104,6 +104,9 @@ import { DocumentNode, execute, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLResolveInfo, GraphQLSchema, parse, ParseOptions, Source, subscribe, SubscriptionArgs, TypeInfo, validate, ValidationRule } from 'graphql'; | ||
/** onExecute */ | ||
export declare type TypedExecutionArgs<ContextType> = Omit<ExecutionArgs, 'contextValue'> & { | ||
contextValue: ContextType; | ||
}; | ||
export declare type OriginalExecuteFn = typeof execute; | ||
export declare type OnExecuteEventPayload<ContextType> = { | ||
executeFn: OriginalExecuteFn; | ||
args: ExecutionArgs; | ||
args: TypedExecutionArgs<ContextType>; | ||
setExecuteFn: (newExecute: OriginalExecuteFn) => void; | ||
@@ -124,6 +127,9 @@ setResultAndStopExecution: (newResult: ExecutionResult) => void; | ||
/** onSubscribe */ | ||
export declare type TypedSubscriptionArgs<ContextType> = Omit<SubscriptionArgs, 'contextValue'> & { | ||
contextValue: ContextType; | ||
}; | ||
export declare type OriginalSubscribeFn = typeof subscribe; | ||
export declare type OnSubscribeEventPayload<ContextType> = { | ||
subscribeFn: OriginalSubscribeFn; | ||
args: SubscriptionArgs; | ||
args: TypedSubscriptionArgs<ContextType>; | ||
setSubscribeFn: (newSubscribe: OriginalSubscribeFn) => void; | ||
@@ -130,0 +136,0 @@ extendContext: (contextExtension: Partial<ContextType>) => void; |
{ | ||
"name": "@envelop/types", | ||
"version": "0.4.0", | ||
"version": "0.4.1-alpha-127d311.0", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
12436
215