File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1- import { NextFunction , Request , Response } from 'express' ;
1+ import { Response , RequestHandler } from 'express' ;
22import * as graphqlHTTP from 'express-graphql' ;
33import { RewriteHandler , Rewriter } from 'graphql-query-rewriter' ;
44
@@ -24,9 +24,9 @@ const rewriteResJson = (res: Response) => {
2424const graphqlRewriterMiddleware = ( {
2525 rewriters,
2626 ignoreParsingErrors = true
27- } : RewriterMiddlewareOpts ) =>
27+ } : RewriterMiddlewareOpts ) : RequestHandler =>
2828 // tslint:disable-next-line: only-arrow-functions
29- async function ( req : Request , res : Response , next : NextFunction ) {
29+ async function ( req , res , next ) {
3030 try {
3131 const params = await ( graphqlHTTP as any ) . getGraphQLParams ( req ) ;
3232 const { query, variables, operationName } = params ;
You can’t perform that action at this time.
0 commit comments