You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect return type for tagValueProcessor and attributeValueProcessor in XmlBuilderOptions #581
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).
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>'
We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.
Activity
github-actions commentedon May 31, 2023
We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.
fix: return type for `tagValueProcessor` & `attributeValueProcessor`
fix: return type for `tagValueProcessor` & `attributeValueProcessor` (#…