From f387a1c82430a950c7d4f6565790c9adc4b26a05 Mon Sep 17 00:00:00 2001 From: Jamie Talbot Date: Wed, 18 Apr 2018 04:16:45 -0700 Subject: [PATCH] Tighter context typing for GraphQLServerOptions (#919) --- packages/apollo-server-core/src/graphqlOptions.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/apollo-server-core/src/graphqlOptions.ts b/packages/apollo-server-core/src/graphqlOptions.ts index a1122cdf5c6..32a3809dade 100644 --- a/packages/apollo-server-core/src/graphqlOptions.ts +++ b/packages/apollo-server-core/src/graphqlOptions.ts @@ -22,16 +22,16 @@ import { CacheControlExtensionOptions } from 'apollo-cache-control'; * - (optional) debug: a boolean that will print additional debug logging if execution errors occur * */ -export interface GraphQLServerOptions { + export interface GraphQLServerOptions { schema: GraphQLSchema; formatError?: Function; rootValue?: any; - context?: any; + context?: TContext; logFunction?: LogFunction; formatParams?: Function; validationRules?: Array<(context: ValidationContext) => any>; formatResponse?: Function; - fieldResolver?: GraphQLFieldResolver; + fieldResolver?: GraphQLFieldResolver; debug?: boolean; tracing?: boolean; cacheControl?: boolean | CacheControlExtensionOptions;