npm.io
0.8.4 • Published 2 years ago

@types/draftjs-to-html

Licence
MIT
Version
0.8.4
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

Credits

These definitions were written by Ivan Zverev.