Skip to content

Commit 3721ef0

Browse files
authored
Update middlewares.md
1 parent 46bbea6 commit 3721ef0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/middlewares.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ The `LoggerMiddleware` class we've been using is quite simple. It has no members
200200

201201
```typescript
202202
@@filename(logger.middleware)
203-
import { Request, Response } from 'express';
203+
import { Request, Response, NextFunction } from 'express';
204204

205-
export function logger(req: Request, res: Response, next: Function) {
205+
export function logger(req: Request, res: Response, next: NextFunction) {
206206
console.log(`Request...`);
207207
next();
208208
};

0 commit comments

Comments
 (0)