We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
replace
index.d.ts
1 parent 98baf39 commit 801512bCopy full SHA for 801512b
index.d.ts
@@ -7,7 +7,9 @@ import htmlToDOM from 'html-dom-parser';
7
8
export interface HTMLReactParserOptions {
9
// TODO: Replace `object` by type for objects like `{ type: 'h1', props: { children: 'Heading' } }`
10
- replace(domNode: DomElement): React.ReactElement | object | undefined | false;
+ replace?: (
11
+ domNode: DomElement
12
+ ) => React.ReactElement | object | void | undefined | null | false;
13
library?: object;
14
}
15
0 commit comments