Merge pull request #26318 from claasahl/master

[xml2js] Added "value" parameter to "valueProcessors" and "attrValueProcessors"
This commit is contained in:
Armando Aguirre
2018-06-06 13:25:06 -07:00
committed by GitHub

View File

@@ -5,6 +5,7 @@
// Christopher Currens <https://github.com/ccurrens>
// Edward Hinkle <https://github.com/edwardhinkle>
// Behind The Math <https://github.com/BehindTheMath>
// Claas Ahlrichs <https://github.com/claasahl>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node"/>
@@ -34,7 +35,7 @@ export interface Options {
async?: boolean;
attrkey?: string;
attrNameProcessors?: Array<(name: string) => any>;
attrValueProcessors?: Array<(name: string) => any>;
attrValueProcessors?: Array<(value: string, name: string) => any>;
charkey?: string;
charsAsChildren?: boolean;
childkey?: string;
@@ -52,7 +53,7 @@ export interface Options {
tagNameProcessors?: Array<(name: string) => any>;
trim?: boolean;
validator?: Function;
valueProcessors?: Array<(name: string) => any>;
valueProcessors?: Array<(value: string, name: string) => any>;
xmlns?: boolean;
}