mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
@types/draft-js fix customStyleFn return type (#41276)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
4cd3d19955
commit
007889e18b
Vendored
+3
-3
@@ -98,9 +98,9 @@ declare namespace Draft {
|
||||
// that will be rendered for matching ranges.
|
||||
customStyleMap?: DraftStyleMap;
|
||||
|
||||
// Provide a function that will construct CSS style objects given inline
|
||||
// style names.
|
||||
customStyleFn?: (style: DraftInlineStyle, block: ContentBlock) => DraftStyleMap;
|
||||
// Define a function to transform inline styles to CSS objects
|
||||
// that are applied to spans of text.
|
||||
customStyleFn?: (style: DraftInlineStyle, block: ContentBlock) => React.CSSProperties;
|
||||
|
||||
// A function that accepts a synthetic key event and returns
|
||||
// the matching DraftEditorCommand constant, or null if no command should
|
||||
|
||||
Reference in New Issue
Block a user