Skip to content

Commit 2ae1f62

Browse files
authored
fix: return type for tagValueProcessor & attributeValueProcessor (#582)
Resolves #581 Co-authored-by: Simon-TechForm <73996878+Simon-TechForm@users.noreply.github.com>
1 parent 9118736 commit 2ae1f62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fxp.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ type XmlBuilderOptions = {
345345
*
346346
* Defaults to `(tagName, val, jPath, hasAttributes, isLeafNode) => val`
347347
*/
348-
tagValueProcessor?: (name: string, value: unknown) => string;
348+
tagValueProcessor?: (name: string, value: unknown) => unknown;
349349

350350
/**
351351
* Control how attribute value should be parsed
@@ -358,7 +358,7 @@ type XmlBuilderOptions = {
358358
*
359359
* Defaults to `(attrName, val, jPath) => val`
360360
*/
361-
attributeValueProcessor?: (name: string, value: unknown) => string;
361+
attributeValueProcessor?: (name: string, value: unknown) => unknown;
362362

363363
/**
364364
* Whether to process default and DOCTYPE entities

0 commit comments

Comments
 (0)