theme/packages/codemirror/dist/editor.json.d.ts
2025-05-10 03:49:47 +08:00

16 lines
371 B
TypeScript

import { EditorView } from 'codemirror';
declare let editor: EditorView;
/**
* 创建单例
* @param el
* @returns
*/
declare const createEditorInstance: (el?: HTMLDivElement) => EditorView;
/**
* 每次都创建新的实例
* @param el
* @returns
*/
export declare const createEditor: (el: HTMLDivElement) => EditorView;
export { editor, createEditorInstance };