solive-core
Version:
Solidity Monaco Editor Core Library
25 lines • 903 B
TypeScript
import BaseMonaco, { editor } from 'monaco-editor';
import { ErrorMarker } from 'solive-compiler-utils';
export type BaseMonacoEditor = BaseMonaco.editor.IStandaloneCodeEditor;
export type ModelsInfoType = ModelInfoType[];
export type ModelType = ModelInfoType & {
model: editor.ITextModel;
};
export declare enum SupportLanguage {
Solidity = "solidity"
}
export declare class ModelInfoType {
notInitial?: boolean;
shown?: boolean;
readOnly?: boolean;
tested?: boolean;
filename: string;
value: string;
language: SupportLanguage;
constructor({ notInitial, shown, readOnly, tested, filename, value, language, }?: Partial<ModelInfoType>);
}
export type EditorApi = {
addErrorMarker: (errors: ErrorMarker[], from?: string) => void;
removeErrorMarker: (sources: string[], from?: string) => void;
};
//# sourceMappingURL=monaco.d.ts.map