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

Commit 5acb9e1

Browse files
author
Artyom Fedosov
committed
Merge pull request sstur#206 from the upstream
1 parent 347befd commit 5acb9e1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/draft-js-export-html/typings/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
declare module 'draft-js-export-html' {
44
import draftjs = require("draft-js");
55

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

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

0 commit comments

Comments
 (0)