Skip to content

Commit

Permalink
Move TContext generic from requestDidStart method to ApolloServerPlug…
Browse files Browse the repository at this point in the history
…in interface
  • Loading branch information
jdmoody committed Nov 17, 2019
1 parent 6bb6e39 commit e91029b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/apollo-server-plugin-base/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export {
WithRequired,
};

export interface ApolloServerPlugin {
export interface ApolloServerPlugin<TContext = Record<string, any>> {
serverWillStart?(service: GraphQLServiceContext): ValueOrPromise<void>;
requestDidStart?<TContext>(
requestDidStart?(
requestContext: GraphQLRequestContext<TContext>,
): GraphQLRequestListener<TContext> | void;
}
Expand Down

0 comments on commit e91029b

Please sign in to comment.