@types/html-to-draftjs
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

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.

import { ContentBlock, RawDraftEntity } from "draft-js";

declare function htmlToDraft(
    text: string,
    customChunkRenderer?: (
        nodeName: string,
        node: HTMLElement,
    ) => RawDraftEntity | undefined,
): {
    contentBlocks: ContentBlock[];
    entityMap?: any;
};

export = htmlToDraft;

Additional Details

  • Last updated: Fri, 03 Jan 2025 17:02:21 GMT
  • Dependencies: @types/draft-js

Credits

These definitions were written by Ivan Zverev.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/html-to-draftjs

Weekly Downloads

35,536

Version

1.5.0

License

MIT

Unpacked Size

3.33 kB

Total Files

5

Last publish

Collaborators

  • types