@envelop/types
Advanced tools
Comparing version 0.1.5-alpha-89abc0f.0 to 0.1.5-alpha-aed2e8b.0
@@ -1,2 +0,2 @@ | ||
import { DocumentNode, GraphQLSchema, Source, ParseOptions, GraphQLError, parse, validate, GraphQLResolveInfo, ExecutionArgs, ExecutionResult, ValidationRule, TypeInfo, SubscriptionArgs as OriginalSubscriptionArgs, GraphQLFieldResolver, GraphQLTypeResolver } from 'graphql'; | ||
import { DocumentNode, GraphQLSchema, Source, ParseOptions, GraphQLError, parse, validate, GraphQLResolveInfo, ExecutionArgs, ExecutionResult, ValidationRule, TypeInfo, SubscriptionArgs, GraphQLFieldResolver, GraphQLTypeResolver } from 'graphql'; | ||
import { Maybe } from 'graphql/jsutils/Maybe'; | ||
@@ -17,5 +17,2 @@ import { PromiseOrValue } from 'graphql/jsutils/PromiseOrValue'; | ||
export declare type ExecuteFunction = (...args: PolymorphicExecuteArguments) => PromiseOrValue<ExecutionResult>; | ||
export declare type SubscriptionArgs = OriginalSubscriptionArgs & { | ||
execute?: ExecuteFunction; | ||
}; | ||
export declare type PolymorphicSubscribeArguments = [SubscriptionArgs] | [ | ||
@@ -56,9 +53,2 @@ GraphQLSchema, | ||
}; | ||
export declare type OnExecuteSubscriptionEventHandler<ContextType = DefaultContext> = (options: { | ||
executeFn: ExecuteFunction; | ||
args: ExecutionArgs; | ||
setExecuteFn: (newExecute: ExecuteFunction) => void; | ||
setResultAndStopExecution: (newResult: ExecutionResult) => void; | ||
extendContext: (contextExtension: Partial<ContextType>) => void; | ||
}) => OnExecuteHookResult<ContextType> | void; | ||
export declare type OnSubscribeHookResult<ContextType = DefaultContext> = { | ||
@@ -70,3 +60,2 @@ onSubscribeResult?: (options: { | ||
onResolverCalled?: OnResolverCalledHooks<ContextType>; | ||
onExecuteSubscriptionEvent?: OnExecuteSubscriptionEventHandler<ContextType>; | ||
}; | ||
@@ -73,0 +62,0 @@ export interface Plugin<PluginContext = DefaultContext> { |
{ | ||
"name": "@envelop/types", | ||
"version": "0.1.5-alpha-89abc0f.0", | ||
"version": "0.1.5-alpha-aed2e8b.0", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6306
134