diff --git a/index.d.ts b/index.d.ts index 38485943..4c73b94c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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) +} +