Skip to content

Commit 133217c

Browse files
committed
chore: fix eslint issue
1 parent d558c00 commit 133217c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/src/components/Editor.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { Button } from "@/components/ui/button";
1313
import IModelContentChangedEvent = editor.IModelContentChangedEvent;
1414
import ITextModel = editor.ITextModel;
1515
import ICodeEditor = editor.ICodeEditor;
16+
import IStandaloneDiffEditor = editor.IStandaloneDiffEditor;
1617

1718
export interface EditorComponentProps {
1819
readonly: boolean;
@@ -31,7 +32,7 @@ export interface EditorComponentProps {
3132
const minLoadingTime = 150;
3233

3334
export function Editor(props: EditorComponentProps) {
34-
const editorRef = useRef<ICodeEditor | null>(null);
35+
const editorRef = useRef<ICodeEditor | IStandaloneDiffEditor | null>(null);
3536
const monacoRef = useRef<Monaco | null>(null);
3637
const modelRef = useRef<ITextModel | null>(null);
3738
const [lastLoadingTime, setLastLoadingTime] = useState(minLoadingTime);
@@ -74,7 +75,7 @@ export function Editor(props: EditorComponentProps) {
7475
}, []);
7576

7677
const handleEditorDidMount = useCallback(
77-
(editor: ICodeEditor, monaco: Monaco) => {
78+
(editor: ICodeEditor | IStandaloneDiffEditor, monaco: Monaco) => {
7879
editorRef.current = editor;
7980

8081
const options = {

0 commit comments

Comments
 (0)