UNPKG

@yuntijs/ui

Version:

☁️ Yunti UI - an open-source UI component library for building Cloud Native web apps

40 lines (39 loc) 1.35 kB
import type { editor } from 'monaco-editor'; import React from 'react'; import { IDiffMonacoEditorProps, ISingleMonacoEditorProps } from './helper'; export * from './controller'; export * from './monaco'; declare function noop(): void; export declare const SingleMonacoEditorComponent: React.FC<ISingleMonacoEditorProps & { variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined; }> & { displayName: string; default: { width: string; height: number; defaultValue: string; language: string; options: editor.IStandaloneEditorConstructionOptions; editorDidMount: typeof noop; editorWillMount: typeof noop; onChange: typeof noop; requireConfig: {}; }; MonacoDiffEditor: React.FC<IDiffMonacoEditorProps & { variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined; }> & { displayName: string; default: { width: string; height: number; defaultValue: string; language: string; options: editor.IStandaloneEditorConstructionOptions; editorDidMount: typeof noop; editorWillMount: typeof noop; onChange: typeof noop; requireConfig: {}; }; }; }; export default SingleMonacoEditorComponent;