Skip to content

Commit

Permalink
Improve type of defaultOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas committed Feb 7, 2025
1 parent 17b5c21 commit 9e0e468
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion projects/editor/src/lib/config.ts
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;
}

0 comments on commit 9e0e468

Please sign in to comment.