mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
Improve type definition
This commit is contained in:
parent
d8a6aaf6a0
commit
9eb201f72f
1 changed files with 24 additions and 1 deletions
25
index.d.ts
vendored
25
index.d.ts
vendored
|
|
@ -1 +1,24 @@
|
||||||
declare module 'monaco-editor-webpack-plugin';
|
|
||||||
|
export interface IMonacoEditorWebpackPluginOpts {
|
||||||
|
/**
|
||||||
|
* custom output path for worker scripts, relative to the main webpack `output.path`.
|
||||||
|
* Defaults to ''.
|
||||||
|
*/
|
||||||
|
output: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Include only a subset of the languages supported.
|
||||||
|
*/
|
||||||
|
languages: string[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Include only a subset of the editor features.
|
||||||
|
* Use e.g. '!contextmenu' to exclude a certain feature.
|
||||||
|
*/
|
||||||
|
features: string[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export default class MonacoEditorWebpackPlugin {
|
||||||
|
constructor(opts?: IMonacoEditorWebpackPluginOpts)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue