META-INF.resources.primefaces-extensions.monacoeditor.primefaces-monaco-module.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of primefaces-extensions Show documentation
Show all versions of primefaces-extensions Show documentation
PrimeFaces Extensions components and utilities for PrimeFaces.
// @ts-check
declare module "monaco-editor" {
export interface MonacoLocale {
/** Map between the localization key and the localized string. */
data: Record;
/** Language code such as `en` or `de`. */
language: string;
}
export interface Environment {
/** Locale data to be used by the editor. */
Locale?: MonacoLocale;
/** Used to define an extender object */
Extender?: {
codeEditor?: PrimeFaces.widget.ExtMonacoEditor.ExtenderCodeEditorFramed,
diffEditor?: PrimeFaces.widget.ExtMonacoEditor.ExtenderDiffEditorFramed,
};
/** Used by the monaco editor in the iframe. */
InstanceId?: number;
/** Used by the monaco editor in the iframe. Available only during a call to `invokeMonacoScript`. */
_INVOKE?: {
args: any[];
error: any;
return: any;
};
}
}
declare global {
/**
* The official API of the Monaco editor, exposed as a global variable.
*/
let monaco: typeof import("monaco-editor");
/**
* Exposes the internal API of monaco editor. May be used to customize the editor even further.
*
* __THIS IS UNSUPPORTED AND MAY BE CHANGED WITHOUT NOTICE. MAKE SURE YOU KNOW WHAT YOU ARE DOING AND USE AT YOUR OWN RISK.__
*/
let monacoExtras: any;
}
export { }