Skip to content

Commit

Permalink
type: optimize type imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 23, 2024
1 parent b1be2ab commit cead45e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/components/ToolBar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Fragment } from 'react';
import { ICommand, defaultCommands } from '../../commands';
import { type ICommand, defaultCommands } from '../../commands';
import { IMarkdownEditor, ToolBarProps } from '../..';
import './index.less';

Expand Down
6 changes: 3 additions & 3 deletions core/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { useState, useRef, useImperativeHandle, Fragment, useEffect, useCallback } from 'react';
import { markdown, markdownLanguage } from '@codemirror/lang-markdown';
import { languages } from '@codemirror/language-data';
import { EditorView, ViewUpdate } from '@codemirror/view';
import { EditorView, type ViewUpdate } from '@codemirror/view';
import * as events from '@uiw/codemirror-extensions-events';
import CodeMirror, { ReactCodeMirrorProps, ReactCodeMirrorRef } from '@uiw/react-codemirror';
import CodeMirror, { type ReactCodeMirrorProps, type ReactCodeMirrorRef } from '@uiw/react-codemirror';
import MarkdownPreview, { MarkdownPreviewProps } from '@uiw/react-markdown-preview';
import ToolBar, { Commands } from './components/ToolBar';
import ToolBar, { type Commands } from './components/ToolBar';
import { getCommands, getModeCommands } from './commands';
import { defaultTheme } from './theme';
import './index.less';
Expand Down

0 comments on commit cead45e

Please sign in to comment.