@envelop/types
Advanced tools
Comparing version 0.5.0-alpha-728ec6f.0 to 1.0.0
@@ -1,2 +0,2 @@ | ||
import { GetEnvelopedFn } from 'packages/core/src'; | ||
import { GetEnvelopedFn } from './get-enveloped'; | ||
import { Plugin } from './plugin'; | ||
@@ -3,0 +3,0 @@ import { Spread, TuplifyUnion, Unarray } from './utils'; |
@@ -1,3 +0,16 @@ | ||
import type { DocumentNode, GraphQLFieldResolver, GraphQLSchema, SubscriptionArgs, ExecutionResult } from 'graphql'; | ||
import type { DocumentNode, GraphQLFieldResolver, GraphQLSchema, SubscriptionArgs, ExecutionResult, ExecutionArgs, GraphQLTypeResolver } from 'graphql'; | ||
import type { Maybe, PromiseOrValue, AsyncIterableIteratorOrValue } from './utils'; | ||
export declare type PolymorphicExecuteArguments = [ExecutionArgs] | [ | ||
GraphQLSchema, | ||
DocumentNode, | ||
any, | ||
any, | ||
Maybe<{ | ||
[key: string]: any; | ||
}>, | ||
Maybe<string>, | ||
Maybe<GraphQLFieldResolver<any, any>>, | ||
Maybe<GraphQLTypeResolver<any, any>> | ||
]; | ||
export declare type ExecuteFunction = (...args: PolymorphicExecuteArguments) => PromiseOrValue<AsyncIterableIteratorOrValue<ExecutionResult>>; | ||
export declare type PolymorphicSubscribeArguments = [SubscriptionArgs] | [ | ||
@@ -4,0 +17,0 @@ GraphQLSchema, |
@@ -1,5 +0,6 @@ | ||
import type { DocumentNode, execute, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLResolveInfo, GraphQLSchema, parse, ParseOptions, Source, SubscriptionArgs, TypeInfo, validate, ValidationRule } from 'graphql'; | ||
import type { DocumentNode, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLResolveInfo, GraphQLSchema, parse, ParseOptions, Source, SubscriptionArgs, TypeInfo, validate, ValidationRule } from 'graphql'; | ||
import { Maybe } from 'graphql/jsutils/Maybe'; | ||
import { PromiseOrValue } from 'graphql/jsutils/PromiseOrValue'; | ||
import { DefaultContext } from 'packages/core/src'; | ||
import { DefaultContext } from './context-types'; | ||
import { AsyncIterableIteratorOrValue, ExecuteFunction } from '@envelop/core'; | ||
import { SubscribeFunction } from './graphql'; | ||
@@ -108,3 +109,3 @@ import { Plugin } from './plugin'; | ||
}; | ||
export declare type OriginalExecuteFn = typeof execute; | ||
export declare type OriginalExecuteFn = ExecuteFunction; | ||
export declare type OnExecuteEventPayload<ContextType> = { | ||
@@ -117,7 +118,17 @@ executeFn: OriginalExecuteFn; | ||
}; | ||
export declare type OnExecuteDoneEventPayload = { | ||
export declare type OnExecuteDoneHookResultOnNextHookPayload = { | ||
result: ExecutionResult; | ||
setResult: (newResult: ExecutionResult) => void; | ||
}; | ||
export declare type OnExecuteDoneHook = (options: OnExecuteDoneEventPayload) => void; | ||
export declare type OnExecuteDoneHookResultOnNextHook = (payload: OnExecuteDoneHookResultOnNextHookPayload) => void | Promise<void>; | ||
export declare type OnExecuteDoneHookResultOnEndHook = () => void; | ||
export declare type OnExecuteDoneHookResult = { | ||
onNext?: OnExecuteDoneHookResultOnNextHook; | ||
onEnd?: OnExecuteDoneHookResultOnEndHook; | ||
}; | ||
export declare type OnExecuteDoneEventPayload = { | ||
result: AsyncIterableIteratorOrValue<ExecutionResult>; | ||
setResult: (newResult: AsyncIterableIteratorOrValue<ExecutionResult>) => void; | ||
}; | ||
export declare type OnExecuteDoneHook = (options: OnExecuteDoneEventPayload) => void | OnExecuteDoneHookResult; | ||
export declare type OnExecuteHookResult<ContextType> = { | ||
@@ -124,0 +135,0 @@ onExecuteDone?: OnExecuteDoneHook; |
{ | ||
"name": "@envelop/types", | ||
"version": "0.5.0-alpha-728ec6f.0", | ||
"version": "1.0.0", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
14839
267
1