diff --git a/types/xml2js/index.d.ts b/types/xml2js/index.d.ts index 248f29814b..42fc669da4 100644 --- a/types/xml2js/index.d.ts +++ b/types/xml2js/index.d.ts @@ -5,6 +5,7 @@ // Christopher Currens // Edward Hinkle // Behind The Math +// Claas Ahlrichs // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -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; }