File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"use client" ;
22
3- import React from "react" ;
3+ import type React from "react" ;
44import { Editor } from "@monaco-editor/react" ;
55import { useTheme } from "@/lib/theme/ThemeProvider" ;
66import {
@@ -14,9 +14,9 @@ import {
1414 useMountedState ,
1515} from "./hooks" ;
1616import {
17- CodeEditorProps ,
17+ type CodeEditorProps ,
1818 DEFAULT_EDITOR_OPTIONS ,
19- SupportedNetwork ,
19+ type SupportedNetwork ,
2020} from "./types" ;
2121
2222const CodeEditor : React . FC < CodeEditorProps > = ( {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export interface EditorOptions {
4747 cursorBlinking ?: string ;
4848 automaticLayout ?: boolean ;
4949 lineNumbers ?: "on" | "off" ;
50- renderLineHighlight ?: string ;
50+ renderLineHighlight ?: "none" | "line" | "gutter" | "all" ;
5151 folding ?: boolean ;
5252 contextmenu ?: boolean ;
5353 formatOnPaste ?: boolean ;
@@ -83,7 +83,7 @@ export const DEFAULT_EDITOR_OPTIONS: EditorOptions = {
8383 cursorBlinking : "smooth" ,
8484 automaticLayout : true ,
8585 lineNumbers : "on" ,
86- renderLineHighlight : "all" ,
86+ renderLineHighlight : "all" as const ,
8787 folding : true ,
8888 contextmenu : true ,
8989 formatOnPaste : true ,
You can’t perform that action at this time.
0 commit comments