Merge pull request #33448 from jackall3n/master

[slate-react]: [removed] renderPlaceholder from Editor
This commit is contained in:
Jesse Trinity
2019-03-01 17:53:36 -08:00
committed by GitHub

View File

@@ -1,4 +1,4 @@
// Type definitions for slate-react 0.20
// Type definitions for slate-react 0.21
// Project: https://github.com/ianstormtaylor/slate
// Definitions by: Andy Kent <https://github.com/andykent>
// Jamie Talbot <https://github.com/majelbstoat>
@@ -8,6 +8,7 @@
// Irwan Fario Subastian <https://github.com/isubasti>
// Hanna Greaves <https://github.com/sgreav>
// Francesco Agnoletto <https://github.com/Kornil>
// Jack Allen <https://github.com/jackall3n>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import {
@@ -61,11 +62,6 @@ export interface RenderNodeProps {
readOnly: boolean;
}
export interface RenderPlaceholderProps {
editor: CoreEditor;
readOnly: boolean;
}
export type EventHook = (
event: Event,
editor: CoreEditor,
@@ -77,7 +73,6 @@ export interface Plugin {
renderEditor?: (props: EditorProps, editor: CoreEditor, next: () => any) => any;
renderMark?: (props: RenderMarkProps, editor: CoreEditor, next: () => any) => any;
renderNode?: (props: RenderNodeProps, editor: CoreEditor, next: () => any) => any;
renderPlaceholder?: (props: RenderPlaceholderProps, editor: CoreEditor, next: () => any) => any;
shouldNodeComponentUpdate?: (previousProps: RenderNodeProps, props: RenderNodeProps, editor: CoreEditor, next: () => any) => any;
onBeforeInput?: EventHook;