Skip to content

Commit b3966f9

Browse files
wewoormumiao
authored andcommitted
fix: add the keyword type when exporting the interface or type object
1 parent fa01143 commit b3966f9

File tree

5 files changed

+76
-41
lines changed

5 files changed

+76
-41
lines changed

src/components/dialog/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,6 @@ Modal.destroyAll = function destroyAllFn() {
3636
}
3737
};
3838

39-
export { Modal, IModalFuncProps, IModalProps };
39+
export { Modal };
40+
41+
export type { IModalFuncProps, IModalProps };

src/components/index.ts

+66-35
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,69 @@
1-
export {
2-
ActionBar,
1+
export { ActionBar } from 'mo/components/actionBar';
2+
3+
export type {
34
ActionBarItem,
45
IActionBarProps,
56
IActionBarItemProps,
6-
} from './actionBar';
7-
export {
8-
Breadcrumb,
9-
IBreadcrumbProps,
10-
IBreadcrumbItemProps,
11-
} from './breadcrumb';
12-
export { Button, IButtonProps } from './button';
13-
export { Checkbox, ICheckboxProps } from './checkbox';
14-
export { Collapse, ICollapseProps, CollapsePanel } from './collapse';
15-
export { useContextMenu, IContextMenuProps } from './contextMenu';
16-
export { useContextView, IContextView, IContextViewProps } from './contextView';
17-
export { Modal, IModalProps, IModalFuncProps } from './dialog';
18-
export { DropDown, IDropDownProps } from './dropdown';
19-
export { Icon, IIconProps } from './icon';
20-
export { Input, IInputProps, ITextAreaProps } from './input';
21-
export { List, Item, IListProps, IItemProps } from './list';
22-
export {
23-
Menu,
24-
MenuItem,
25-
SubMenu,
26-
MenuMode,
27-
IMenuProps,
28-
IMenuItemProps,
29-
ISubMenuProps,
30-
} from './menu';
31-
export { MonacoEditor, IMonacoEditorProps } from './monaco';
32-
export { Scrollable, IScrollbarProps } from './scrollable';
33-
export { Search, ISearchProps } from './search';
34-
export { Select, Option, ISelectProps, ISelectOptionProps } from './select';
35-
export { Tabs, ITabsProps, TabsType } from './tabs';
36-
export { Tab, ITabProps } from './tabs/tab';
37-
export { Toolbar, IToolbarProps } from './toolbar';
38-
export { default as TreeView, ITreeProps, ITreeNodeItemProps } from './tree';
7+
} from 'mo/components/actionBar';
8+
9+
export { Breadcrumb } from './breadcrumb';
10+
11+
export type { IBreadcrumbProps, IBreadcrumbItemProps } from './breadcrumb';
12+
13+
export { Button } from './button';
14+
export type { IButtonProps } from './button';
15+
16+
export { Checkbox } from './checkbox';
17+
export type { ICheckboxProps } from './checkbox';
18+
19+
export { Collapse, CollapsePanel } from './collapse';
20+
export type { ICollapseProps } from './collapse';
21+
22+
export { useContextMenu } from './contextMenu';
23+
export type { IContextMenuProps } from './contextMenu';
24+
25+
export { useContextView } from './contextView';
26+
export type { IContextViewProps, IContextView } from './contextView';
27+
28+
export { Modal } from './dialog';
29+
export type { IModalProps, IModalFuncProps } from './dialog';
30+
31+
export { DropDown } from './dropdown';
32+
export type { IDropDownProps } from './dropdown';
33+
34+
export { Icon } from './icon';
35+
export type { IIconProps } from './icon';
36+
37+
export { Input } from './input';
38+
export type { IInputProps, ITextAreaProps } from './input';
39+
40+
export { List, Item } from './list';
41+
export type { IListProps, IItemProps } from './list';
42+
43+
export { Menu, MenuItem, SubMenu, MenuMode } from './menu';
44+
45+
export type { IMenuProps, IMenuItemProps, ISubMenuProps } from './menu';
46+
47+
export { MonacoEditor } from './monaco';
48+
export type { IMonacoEditorProps } from './monaco';
49+
50+
export { Scrollable } from './scrollable';
51+
export type { IScrollbarProps } from './scrollable';
52+
53+
export { Search } from './search';
54+
export type { ISearchProps } from './search';
55+
56+
export { Select, Option } from './select';
57+
export type { ISelectProps, ISelectOptionProps } from './select';
58+
59+
export { Tabs } from './tabs';
60+
export type { ITabsProps, TabsType } from './tabs';
61+
62+
export { Tab } from './tabs/tab';
63+
export type { ITabProps } from './tabs/tab';
64+
65+
export { Toolbar } from './toolbar';
66+
export type { IToolbarProps } from './toolbar';
67+
68+
export { default as TreeView } from './tree';
69+
export type { ITreeProps, ITreeNodeItemProps } from './tree';

src/components/input/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Input } from './input';
22
import { TextArea } from './textArea';
3-
export { IInputProps } from './input';
4-
export { ITextAreaProps } from './textArea';
3+
export type { IInputProps } from './input';
4+
export type { ITextAreaProps } from './textArea';
55

66
Input.TextArea = TextArea;
77
export { Input };

src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import * as molecule from './molecule.api';
22
import 'mo/controller';
33

4-
export { MoleculeProvider, IMoleculeProps } from 'mo/provider';
4+
export { MoleculeProvider } from 'mo/provider';
5+
export type { IMoleculeProps } from 'mo/provider';
6+
57
export { Workbench } from 'mo/workbench/workbench';
68
export { molecule };
79

src/workbench/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export { Panel } from 'mo/workbench/panel/panel';
88
export { Sidebar } from 'mo/workbench/sidebar';
99
export { StatusBar } from 'mo/workbench/statusBar';
1010

11-
export {
11+
export type {
1212
IWorkbench,
1313
IActivityBar,
1414
IActivityBarItem,
@@ -24,7 +24,7 @@ export {
2424
INotificationItem,
2525
} from 'mo/model';
2626

27-
export {
27+
export type {
2828
IActivityBarController,
2929
IWorkbenchController,
3030
IEditorController,

0 commit comments

Comments
 (0)