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

0.8.4 • Public • Published

Installation

npm install --save @types/draftjs-to-html

Summary

This package contains type definitions for draftjs-to-html (https://github.com/jpuri/draftjs-to-html#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/draftjs-to-html.

index.d.ts

import { RawDraftContentState } from "draft-js";

interface HashtagConfig {
    trigger?: string | undefined;
    separator?: string | undefined;
}

declare function draftToHtml(
    editorContent: RawDraftContentState,
    hashtagConfig?: HashtagConfig,
    directional?: boolean,
    customEntityTransform?: (...args: any[]) => any,
): string;

export = draftToHtml;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/draft-js

Credits

These definitions were written by Ivan Zverev.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/draftjs-to-html

Weekly Downloads

78,814

Version

0.8.4

License

MIT

Unpacked Size

3.42 kB

Total Files

5

Last publish

Collaborators

  • types