mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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.
20 lines
634 B
TypeScript
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;
|