npm install --save @types/html-to-draftjs
This package contains type definitions for html-to-draftjs (https://github.com/jpuri/html-to-draftjs#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/html-to-draftjs.
import { ContentBlock, RawDraftEntity } from "draft-js";
declare function htmlToDraft(
text: string,
customChunkRenderer?: (
nodeName: string,
node: HTMLElement,
) => RawDraftEntity | undefined,
): {
contentBlocks: ContentBlock[];
entityMap?: any;
};
export = htmlToDraft;
- Last updated: Fri, 03 Jan 2025 17:02:21 GMT
- Dependencies: @types/draft-js
These definitions were written by Ivan Zverev.