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

1.4.3 • 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.

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.

/@types/html-to-draftjs/

    Package Sidebar

    Install

    npm i @types/html-to-draftjs

    Weekly Downloads

    39,670

    Version

    1.4.3

    License

    MIT

    Unpacked Size

    3.27 kB

    Total Files

    5

    Last publish

    Collaborators

    • types