Skip to content

Commit

Permalink
fix: return type for tagValueProcessor & attributeValueProcessor (#…
Browse files Browse the repository at this point in the history
…582)

Resolves #581

Co-authored-by: Simon-TechForm <[email protected]>
  • Loading branch information
monholm and monholm authored May 12, 2024
1 parent 9118736 commit 2ae1f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fxp.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ type XmlBuilderOptions = {
*
* Defaults to `(tagName, val, jPath, hasAttributes, isLeafNode) => val`
*/
tagValueProcessor?: (name: string, value: unknown) => string;
tagValueProcessor?: (name: string, value: unknown) => unknown;

/**
* Control how attribute value should be parsed
Expand All @@ -358,7 +358,7 @@ type XmlBuilderOptions = {
*
* Defaults to `(attrName, val, jPath) => val`
*/
attributeValueProcessor?: (name: string, value: unknown) => string;
attributeValueProcessor?: (name: string, value: unknown) => unknown;

/**
* Whether to process default and DOCTYPE entities
Expand Down

0 comments on commit 2ae1f62

Please sign in to comment.