All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.primefaces-extensions.monacoeditor.primefaces-monaco-module.d.ts Maven / Gradle / Ivy

There is a newer version: 14.0.7.1
Show newest version
// @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 { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy