Skip to content

Commit

Permalink
Fix create focus plugin typings (draft-js-plugins#1506)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfadlyramadhan authored Oct 5, 2020
1 parent bd6493c commit 374adac
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion draft-js-focus-plugin/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ import { EditorPlugin } from "draft-js-plugins-editor";

type FocusEditorPlugin = EditorPlugin & { decorator: DraftDecorator };

declare const createFocusPlugin: () => FocusEditorPlugin;
export interface FocusEditorPluginConfig {
theme?: {
focused?: string;
unfocused?: string;
}
}

declare const createFocusPlugin: (config?: FocusEditorPluginConfig) => FocusEditorPlugin;

export default createFocusPlugin;

0 comments on commit 374adac

Please sign in to comment.