Installation
npm install --save @types/html-to-draftjs
Summary
This package contains type definitions for html-to-draftjs (https://github.com/jpuri/html-to-draftjs#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/html-to-draftjs.
index.d.ts
import { ContentBlock, RawDraftEntity } from "draft-js";
export default function htmlToDraft(
text: string,
customChunkRenderer?: (
nodeName: string,
node: HTMLElement,
) => RawDraftEntity | undefined,
): {
contentBlocks: ContentBlock[];
entityMap?: any;
};
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/draft-js
Credits
These definitions were written by Ivan Zverev.