Skip to content

Commit 91edadd

Browse files
committed
fix: tweaking typedef to be in-line with @types/express
1 parent 715df51 commit 91edadd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextFunction, Request, Response } from 'express';
1+
import { Response, RequestHandler } from 'express';
22
import * as graphqlHTTP from 'express-graphql';
33
import { RewriteHandler, Rewriter } from 'graphql-query-rewriter';
44

@@ -24,9 +24,9 @@ const rewriteResJson = (res: Response) => {
2424
const 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;

0 commit comments

Comments
 (0)