Property 'body' does not exist on type 'Request' Property 'body' does not exist on type 'Request' express express

Property 'body' does not exist on type 'Request'


body-parser had been removed from express 4 into separate project,so there won't be any type definition about it.

I use it this way:

import * as bodyParser from 'body-parser';let router: Router = express.Router();router.use(bodyParser.text());(req: Request, res: Response) => {    let address = req['body'];}


instead of

typings install express --save-dev

i did

npm install @typings/express --save-dev

and it gave me 'req.body'