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.