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.
1 parent 0d3bc6c commit ffb7964Copy full SHA for ffb7964
index.d.ts
@@ -5,11 +5,19 @@ import domToReact from './lib/dom-to-react';
5
import htmlToDOM from 'html-dom-parser';
6
7
export interface HTMLReactParserOptions {
8
- // TODO: Replace `object` by type for objects like `{ type: 'h1', props: { children: 'Heading' } }`
9
replace?: (
10
domNode: DomElement
11
) => JSX.Element | object | void | undefined | null | false;
12
- library?: object;
+ library?: {
+ cloneElement: (
13
+ element: JSX.Element,
14
+ props?: object,
15
+ ...children: any
16
+ ) => JSX.Element;
17
+ createElement: (type: any, props?: object, ...children: any) => JSX.Element;
18
+ isValidElement: (element: any) => boolean;
19
+ [key: string]: any;
20
+ };
21
}
22
23
/**
0 commit comments