Skip to content

Commit cead45e

Browse files
committed
type: optimize type imports.
1 parent b1be2ab commit cead45e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/components/ToolBar/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Fragment } from 'react';
2-
import { ICommand, defaultCommands } from '../../commands';
2+
import { type ICommand, defaultCommands } from '../../commands';
33
import { IMarkdownEditor, ToolBarProps } from '../..';
44
import './index.less';
55

core/src/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React, { useState, useRef, useImperativeHandle, Fragment, useEffect, useCallback } from 'react';
22
import { markdown, markdownLanguage } from '@codemirror/lang-markdown';
33
import { languages } from '@codemirror/language-data';
4-
import { EditorView, ViewUpdate } from '@codemirror/view';
4+
import { EditorView, type ViewUpdate } from '@codemirror/view';
55
import * as events from '@uiw/codemirror-extensions-events';
6-
import CodeMirror, { ReactCodeMirrorProps, ReactCodeMirrorRef } from '@uiw/react-codemirror';
6+
import CodeMirror, { type ReactCodeMirrorProps, type ReactCodeMirrorRef } from '@uiw/react-codemirror';
77
import MarkdownPreview, { MarkdownPreviewProps } from '@uiw/react-markdown-preview';
8-
import ToolBar, { Commands } from './components/ToolBar';
8+
import ToolBar, { type Commands } from './components/ToolBar';
99
import { getCommands, getModeCommands } from './commands';
1010
import { defaultTheme } from './theme';
1111
import './index.less';

0 commit comments

Comments
 (0)