Skip to content

Commit 2eb7bbc

Browse files
committed
chore: update type
1 parent f6da6be commit 2eb7bbc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/share/var.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ComponentClass, FC } from 'react';
1+
import type { FC } from 'react';
22
import type Editor from '../editor';
33
import type { PluginComponent } from '../plugins/Plugin';
44

@@ -87,4 +87,6 @@ export type FunctionPlugin<C = any> = FC<PluginProps<C>> & {
8787
align?: string;
8888
defaultConfig?: C;
8989
};
90-
export type EditorPlugin<C = any> = typeof PluginComponent<C> | FunctionPlugin;
90+
export type EditorPlugin<C = any> =
91+
| typeof PluginComponent<any, C>
92+
| FunctionPlugin;

0 commit comments

Comments
 (0)