@typefox/monaco-editor-react
Version:
React component for Monaco-Editor and Monaco Languageclient
12 lines • 555 B
TypeScript
import React, { type CSSProperties } from 'react';
import { MonacoEditorLanguageClientWrapper, type TextContents, type WrapperConfig } from 'monaco-editor-wrapper';
export type MonacoEditorProps = {
style?: CSSProperties;
className?: string;
wrapperConfig: WrapperConfig;
onTextChanged?: (textChanges: TextContents) => void;
onLoad?: (wrapper: MonacoEditorLanguageClientWrapper) => void;
onError?: (e: unknown) => void;
};
export declare const MonacoEditorReactComp: React.FC<MonacoEditorProps>;
//# sourceMappingURL=index.d.ts.map