Skip to content

Commit bee51e2

Browse files
mortalYoungmumiao
authored andcommitted
fix: remove useless generic type
1 parent 80d99bc commit bee51e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/tabs/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ import type { UniqueId } from 'mo/common/types';
1717

1818
export type TabsType = 'line' | 'card';
1919
/**
20-
* TODO: Get rid of the generic and remove the ComponentProps
20+
* TODO: Get rid of the ComponentProps in next version
2121
*/
22-
export interface ITabsProps<T = any> extends React.ComponentProps<any> {
22+
export interface ITabsProps extends React.ComponentProps<any> {
2323
className?: string;
2424
style?: React.CSSProperties;
2525
role?: string;

src/model/workbench/editor.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface IEditorAction {
4545
actions?: IEditorActionsProps[];
4646
menu?: IMenuItemProps[];
4747
}
48-
export interface IEditorGroup<E = any, T = any> extends ITabsProps<T> {
48+
export interface IEditorGroup<E = any, T = any> extends ITabsProps {
4949
id: UniqueId;
5050
/**
5151
* Current editor group tab

0 commit comments

Comments
 (0)