@envelop/types
Advanced tools
Comparing version 1.3.0-alpha-b257e50.0 to 1.3.0-alpha-c0b5c44.0
import type { DocumentNode, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLResolveInfo, GraphQLSchema, ParseOptions, Source, SubscriptionArgs, ValidationRule } from 'graphql'; | ||
import { Maybe, PromiseOrValue } from './utils'; | ||
import { DefaultContext } from './context-types'; | ||
import { ExecuteFunction, ParseFunction, ValidateFunction, ValidateFunctionParameter } from '@envelop/core'; | ||
import { AsyncIterableIteratorOrValue, ExecuteFunction, ParseFunction, ValidateFunction, ValidateFunctionParameter } from '@envelop/core'; | ||
import { SubscribeFunction } from './graphql'; | ||
@@ -319,7 +319,7 @@ import { Plugin } from './plugin'; | ||
*/ | ||
result: AsyncIterableIterator<ExecutionResult> | ExecutionResult; | ||
result: AsyncIterableIteratorOrValue<ExecutionResult>; | ||
/** | ||
* Replace the execution result with a new execution result. | ||
*/ | ||
setResult: (newResult: AsyncIterableIterator<ExecutionResult> | ExecutionResult) => void; | ||
setResult: (newResult: AsyncIterableIteratorOrValue<ExecutionResult>) => void; | ||
}; | ||
@@ -386,7 +386,7 @@ /** | ||
*/ | ||
result: AsyncIterableIterator<ExecutionResult> | ExecutionResult; | ||
result: AsyncIterableIteratorOrValue<ExecutionResult>; | ||
/** | ||
* Replace the current execution result with a new execution result. | ||
*/ | ||
setResult: (newResult: AsyncIterableIterator<ExecutionResult> | ExecutionResult) => void; | ||
setResult: (newResult: AsyncIterableIteratorOrValue<ExecutionResult>) => void; | ||
}; | ||
@@ -393,0 +393,0 @@ export declare type OnSubscribeResultResultOnNextHookPayload<ContextType> = { |
{ | ||
"name": "@envelop/types", | ||
"version": "1.3.0-alpha-b257e50.0", | ||
"version": "1.3.0-alpha-c0b5c44.0", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
27090