DefinitelyTyped/types/express-xml-bodyparser/index.d.ts
Matthias Adler 78ad989850
Add all parser options to express-xml-bodyparser
All `xml2js` configuration options can be passed into the middleware,
not only a select few.

Add test to assert that it is possible to change regexp even though this potentially affects
all parser instances.
2018-05-25 02:34:39 +02:00

20 lines
634 B
TypeScript

// Type definitions for express-xml-bodyparser 0.3
// Project: https://github.com/macedigital/express-xml-bodyparser
// Definitions by: Notice Maker <https://github.com/noticeMaker>
// Matthias Adler <https://github.com/macedigital>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { Handler } from 'express';
import { Options as XmlParserOptions } from 'xml2js';
declare function xmlparser(options?: XmlParserOptions): Handler;
declare namespace xmlparser {
// @deprecated Will be removed in future versions
let regexp: RegExp;
}
export = xmlparser;