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 10, 2025
1 parent
17b5c21
commit 1be5c5d
Showing
5 changed files
with
13 additions
and
6 deletions.
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
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
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'); | ||
|
||
export 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; | ||
} |
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
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