diff --git a/core/src/getDefaultExtensions.ts b/core/src/getDefaultExtensions.ts index 45f596a63..a4e0a9aaf 100644 --- a/core/src/getDefaultExtensions.ts +++ b/core/src/getDefaultExtensions.ts @@ -1,6 +1,6 @@ -import { Extension } from '@codemirror/state'; +import { type Extension } from '@codemirror/state'; import { indentWithTab } from '@codemirror/commands'; -import { basicSetup, BasicSetupOptions } from '@uiw/codemirror-extensions-basic-setup'; +import { basicSetup, type BasicSetupOptions } from '@uiw/codemirror-extensions-basic-setup'; import { EditorView, keymap, placeholder } from '@codemirror/view'; import { oneDark } from '@codemirror/theme-one-dark'; import { EditorState } from '@codemirror/state'; diff --git a/core/src/index.tsx b/core/src/index.tsx index b091b5303..2f3986640 100644 --- a/core/src/index.tsx +++ b/core/src/index.tsx @@ -1,9 +1,9 @@ import React, { useRef, forwardRef, useImperativeHandle } from 'react'; -import { EditorState, EditorStateConfig, Extension, StateField } from '@codemirror/state'; -import { EditorView, ViewUpdate } from '@codemirror/view'; -import { BasicSetupOptions } from '@uiw/codemirror-extensions-basic-setup'; +import type { EditorState, EditorStateConfig, Extension, StateField } from '@codemirror/state'; +import type { EditorView, ViewUpdate } from '@codemirror/view'; +import { type BasicSetupOptions } from '@uiw/codemirror-extensions-basic-setup'; import { useCodeMirror } from './useCodeMirror'; -import { Statistics } from './utils'; +import { type Statistics } from './utils'; export * from '@codemirror/view'; export * from '@codemirror/state'; diff --git a/core/src/useCodeMirror.ts b/core/src/useCodeMirror.ts index c64249e7a..e4fd6a03c 100644 --- a/core/src/useCodeMirror.ts +++ b/core/src/useCodeMirror.ts @@ -1,9 +1,9 @@ import { useEffect, useState } from 'react'; import { Annotation, EditorState, StateEffect, type Extension } from '@codemirror/state'; -import { EditorView, ViewUpdate } from '@codemirror/view'; +import { EditorView, type ViewUpdate } from '@codemirror/view'; import { getDefaultExtensions } from './getDefaultExtensions'; import { getStatistics } from './utils'; -import { ReactCodeMirrorProps } from '.'; +import { type ReactCodeMirrorProps } from '.'; const External = Annotation.define(); diff --git a/core/src/utils.ts b/core/src/utils.ts index f791559d6..2dc5c84d1 100644 --- a/core/src/utils.ts +++ b/core/src/utils.ts @@ -1,5 +1,5 @@ -import { EditorSelection, SelectionRange, Line } from '@codemirror/state'; -import { ViewUpdate } from '@codemirror/view'; +import type { EditorSelection, SelectionRange, Line } from '@codemirror/state'; +import type { ViewUpdate } from '@codemirror/view'; export interface Statistics { /** total length of the document */