Skip to content

Commit

Permalink
Add jsdocs for tagValueProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
amitguptagwl committed Aug 26, 2022
1 parent 4735d54 commit 67cf881
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/fxp.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ type X2jOptions = {
trimValues: boolean;
cdataPropName: false | string;
commentPropName: false | string;
/**
Control how tag value should be parsed. Called only if tag value is not empty
@returns {undefined|null} `undefined` or `null` to set original value.
@returns {unknown} 1. Different value or value with different data type to set new value. <br>
2. Same value to set parsed value if `parseTagValue: true`.
*/
tagValueProcessor: (tagName: string, tagValue: string, jPath: string, hasAttributes: boolean, isLeafNode: boolean) => unknown;
attributeValueProcessor: (attrName: string, attrValue: string, jPath: string) => string;
numberParseOptions: strnumOptions;
Expand Down

0 comments on commit 67cf881

Please sign in to comment.