From 2ae1f6240d5d3610a728d60f88deb9bcb6afc74a Mon Sep 17 00:00:00 2001 From: monholm <73996878+monholm@users.noreply.github.com> Date: Sun, 12 May 2024 02:00:32 +0200 Subject: [PATCH] fix: return type for `tagValueProcessor` & `attributeValueProcessor` (#582) Resolves #581 Co-authored-by: Simon-TechForm <73996878+Simon-TechForm@users.noreply.github.com> --- src/fxp.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fxp.d.ts b/src/fxp.d.ts index 835e44ce..bddcfefe 100644 --- a/src/fxp.d.ts +++ b/src/fxp.d.ts @@ -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 @@ -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