-
- Notifications
You must be signed in to change notification settings - Fork 336
Closed
Description
- Are you running the latest version?
- Have you included sample input, output, error, and expected output?
- Have you checked if you are using correct configuration?
Description
Both tagValueProcessor and attributeValueProcessor are declared as returning a string, but the function should allow returning the value as is (which is also the default).
Code
const xmlBuilder = new XMLBuilder({tagValueProcessor: (name, value) => value});Output
Type '(name: string, value: unknown) => unknown' is not assignable to type '(name: string, value: unknown) => string'. Type 'unknown' is not assignable to type 'string'.ts(2322) fxp.d.ts(65, 3): The expected type comes from property 'tagValueProcessor' which is declared here on type 'Partial<XmlBuilderOptions>' expected data
No typescript error.
Would you like to work on this issue?
- Yes
- No
Metadata
Metadata
Assignees
Labels
No labels