mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[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:
parent
b334bed556
commit
5ddf047b2d
14
types/express/index.d.ts
vendored
14
types/express/index.d.ts
vendored
@ -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.
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user