0.8.4 • Published 6 months ago

@types/draftjs-to-html v0.8.4

Weekly downloads
18,077
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for draftjs-to-html 0.8
// Project: https://github.com/jpuri/draftjs-to-html#readme
// Definitions by: Ivan Zverev <https://github.com/1cheese>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.9

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: Tue, 06 Jul 2021 20:32:48 GMT
  • Dependencies: @types/draft-js
  • Global values: none

Credits

These definitions were written by Ivan Zverev.