We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6da6be commit 2eb7bbcCopy full SHA for 2eb7bbc
1 file changed
src/share/var.ts
@@ -1,4 +1,4 @@
1
-import type { ComponentClass, FC } from 'react';
+import type { FC } from 'react';
2
import type Editor from '../editor';
3
import type { PluginComponent } from '../plugins/Plugin';
4
@@ -87,4 +87,6 @@ export type FunctionPlugin<C = any> = FC<PluginProps<C>> & {
87
align?: string;
88
defaultConfig?: C;
89
};
90
-export type EditorPlugin<C = any> = typeof PluginComponent<C> | FunctionPlugin;
+export type EditorPlugin<C = any> =
91
+ | typeof PluginComponent<any, C>
92
+ | FunctionPlugin;
0 commit comments