forked from atularen/ngx-monaco-editor
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lukas
committed
Feb 7, 2025
1 parent
17b5c21
commit 9e0e468
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
import { InjectionToken } from '@angular/core'; | ||
import type MonacoNamespace from 'monaco-editor'; | ||
|
||
export const NGX_MONACO_EDITOR_CONFIG = new InjectionToken('NGX_MONACO_EDITOR_CONFIG'); | ||
|
||
type MonacoOpts = MonacoNamespace.editor.IEditorOptions & | ||
MonacoNamespace.editor.IGlobalEditorOptions & | ||
MonacoNamespace.editor.ITextModelUpdateOptions; | ||
|
||
export interface NgxMonacoEditorConfig { | ||
baseUrl?: string; | ||
requireConfig?: { [key: string]: any; }; | ||
defaultOptions?: { [key: string]: any; }; | ||
defaultOptions?: MonacoOpts; | ||
monacoRequire?: Function; | ||
onMonacoLoad?: Function; | ||
} |