Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request sstur#206 from the upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Artyom Fedosov committed May 19, 2020
1 parent 347befd commit 5acb9e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/draft-js-export-html/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
declare module 'draft-js-export-html' {
import draftjs = require("draft-js");

type InlineStyleFn = (style: draftjs.DraftInlineStyle) => RenderConfig|undefined;
type BlockStyleFn = (block: draftjs.ContentBlock) => RenderConfig|undefined;
type EntityStyleFn = (entity: draftjs.EntityInstance) => RenderConfig|undefined;
type BlockRenderer = (block: draftjs.ContentBlock) => string;
Expand All @@ -18,6 +19,7 @@ declare module 'draft-js-export-html' {
blockRenderers?: { [blockType: string]: BlockRenderer };
blockStyleFn?: BlockStyleFn;
entityStyleFn?: EntityStyleFn;
inlineStyleFn?: InlineStyleFn;
}

export function stateToHTML(content: draftjs.ContentState, options?: Options): string;
Expand Down

0 comments on commit 5acb9e1

Please sign in to comment.