[express] Add latest types for express.raw (#35787)

* Add express.raw type

* Add express.text type

* Don't use patch number
This commit is contained in:
Gady 2019-06-04 20:44:11 +00:00 committed by Andrew Casey
parent b334bed556
commit 5ddf047b2d

View File

@ -1,4 +1,4 @@
// Type definitions for Express 4.16
// Type definitions for Express 4.17
// Project: http://expressjs.com
// Definitions by: Boris Yankov <https://github.com/borisyankov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@ -30,6 +30,18 @@ declare namespace e {
*/
var json: typeof bodyParser.json;
/**
* This is a built-in middleware function in Express. It parses incoming requests with Buffer payloads and is based on body-parser.
* @since 4.17.0
*/
var raw: typeof bodyParser.raw;
/**
* This is a built-in middleware function in Express. It parses incoming requests with text payloads and is based on body-parser.
* @since 4.17.0
*/
var text: typeof bodyParser.text;
/**
* These are the exposed prototypes.
*/