vue-launchers
Version:
9 lines (8 loc) • 448 B
TypeScript
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';
export declare const useMonacoEditor: (language?: string) => {
el: import("vue").Ref<HTMLElement, HTMLElement>;
updateVal: (val: string) => void;
getEditor: () => monaco.editor.IStandaloneCodeEditor;
createEditor: (editorOption?: monaco.editor.IStandaloneEditorConstructionOptions) => monaco.editor.IStandaloneCodeEditor;
onFormatDoc: () => Promise<void>;
};