mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-29 11:12:23 +08:00
Updated urlencoded method
The urlencoded extended option is no longer optional The default value has been deprecated. https://github.com/expressjs/body-parser#bodyparserurlencodedoptions
This commit is contained in:
Vendored
+4
-4
@@ -110,7 +110,7 @@ declare module "body-parser" {
|
||||
defaultCharset?: string;
|
||||
}): express.RequestHandler;
|
||||
|
||||
export function urlencoded(options?: {
|
||||
export function urlencoded(options: {
|
||||
/**
|
||||
* if deflated bodies will be inflated. (default: true)
|
||||
*/
|
||||
@@ -128,11 +128,11 @@ declare module "body-parser" {
|
||||
*/
|
||||
verify?: (req: express.Request, res: express.Response, buf: Buffer, encoding: string) => void;
|
||||
/**
|
||||
* parse extended syntax with the qs module. (default: true)
|
||||
* parse extended syntax with the qs module.
|
||||
*/
|
||||
extended?: boolean;
|
||||
extended: boolean;
|
||||
}): express.RequestHandler;
|
||||
}
|
||||
|
||||
export = bodyParser;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user