Optimize CodeEditor. CodeEditor add tsconfig support.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { editor } from 'monaco-editor'
|
||||
import { editor, languages } from 'monaco-editor'
|
||||
import CompilerOptions = languages.typescript.CompilerOptions
|
||||
|
||||
export type ILanguage = 'javascript' | 'typescript' | 'json' | 'css' | 'xml'
|
||||
|
||||
@@ -17,6 +18,10 @@ export interface IImportMap {
|
||||
imports: Record<string, string>
|
||||
}
|
||||
|
||||
export interface ITsConfig {
|
||||
compilerOptions: CompilerOptions
|
||||
}
|
||||
|
||||
export type ITheme = 'light' | 'vs-dark'
|
||||
|
||||
export type IEditorOptions = editor.IStandaloneEditorConstructionOptions
|
||||
|
||||
Reference in New Issue
Block a user