We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46bbea6 commit 3721ef0Copy full SHA for 3721ef0
content/middlewares.md
@@ -200,9 +200,9 @@ The `LoggerMiddleware` class we've been using is quite simple. It has no members
200
201
```typescript
202
@@filename(logger.middleware)
203
-import { Request, Response } from 'express';
+import { Request, Response, NextFunction } from 'express';
204
205
-export function logger(req: Request, res: Response, next: Function) {
+export function logger(req: Request, res: Response, next: NextFunction) {
206
console.log(`Request...`);
207
next();
208
};
0 commit comments