@envelop/types
Advanced tools
Comparing version
@@ -9,3 +9,3 @@ import { Plugin } from './plugin'; | ||
export declare type GetEnvelopedFn<PluginsContext> = { | ||
<InitialContext extends ArbitraryObject>(initialContext?: InitialContext | null): { | ||
<InitialContext extends ArbitraryObject>(initialContext?: InitialContext): { | ||
execute: OriginalExecuteFn; | ||
@@ -12,0 +12,0 @@ validate: OriginalValidateFn; |
import { DocumentNode, execute, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLResolveInfo, GraphQLSchema, parse, ParseOptions, Source, subscribe, SubscriptionArgs, TypeInfo, validate, ValidationRule } from 'graphql'; | ||
import { Maybe } from 'graphql/jsutils/Maybe'; | ||
import { PromiseOrValue } from 'graphql/jsutils/PromiseOrValue'; | ||
@@ -23,3 +24,3 @@ import { DefaultContext } from 'packages/core/src'; | ||
setSchema: SetSchemaFn; | ||
context: Readonly<ContextType>; | ||
context: Readonly<Maybe<ContextType>>; | ||
extendContext: (contextExtension: Partial<ContextType>) => void; | ||
@@ -26,0 +27,0 @@ }; |
{ | ||
"name": "@envelop/types", | ||
"version": "0.3.1-alpha-05242ff.0", | ||
"version": "0.3.1-alpha-594717c.0", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
@@ -21,1 +21,2 @@ export declare type OptionalPropertyNames<T> = { | ||
export declare type PromiseOrValue<T> = T | Promise<T>; | ||
export declare type Maybe<T> = T | null | undefined; |
12138
0.83%209
0.97%