Merge pull request #15386 from vilic/patch-7

Add `string[]` to the `type` field of json options for body-parser
This commit is contained in:
Nathan Shively-Sanders
2017-03-27 11:27:15 -07:00
committed by GitHub
+1 -1
View File
@@ -16,7 +16,7 @@ declare namespace bodyParser {
interface Options {
inflate?: boolean;
limit?: number | string;
type?: string | ((req: Request) => any);
type?: string | string[] | ((req: Request) => any);
verify?: (req: Request, res: Response, buf: Buffer, encoding: string) => void;
}