Skip to content

Commit

Permalink
update type declaration for replace function
Browse files Browse the repository at this point in the history
  • Loading branch information
robertKozik committed Dec 21, 2023
1 parent 49c9ca2 commit 78dde7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ExpensiMark.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ export default class ExpensiMark {
* @param options.filterRules=[] - An array of name of rules as defined in this class.
* If not provided, all available rules will be applied.
* @param options.shouldEscapeText=true - Whether or not the text should be escaped
* @param options.shouldKeepRawInput=false - Whether or not the raw input should be kept and returned
*/
replace(text: string, { filterRules, shouldEscapeText }?: {
filterRules?: string[];
shouldEscapeText?: boolean;
shouldKeepRawInput?: boolean;
}): string;
/**
* Checks matched URLs for validity and replace valid links with html elements
Expand Down

0 comments on commit 78dde7e

Please sign in to comment.