diff --git a/types/webpack-watched-glob-entries-plugin/index.d.ts b/types/webpack-watched-glob-entries-plugin/index.d.ts index 6f4c1b4a6a..7c6110413e 100644 --- a/types/webpack-watched-glob-entries-plugin/index.d.ts +++ b/types/webpack-watched-glob-entries-plugin/index.d.ts @@ -7,11 +7,13 @@ import { IOptions } from 'glob'; import { EntryFunc, Plugin } from 'webpack'; -export interface PluginOptions { +interface PluginOptions { basename_as_entry_name?: boolean; } -export default class WebpackWatchedGlobEntries extends Plugin { +declare class WebpackWatchedGlobEntries extends Plugin { static getEntries(globs: string[], globOptions?: IOptions, pluginOptions?: PluginOptions): EntryFunc; static getFiles(globString: string, globOptions?: IOptions, basename_as_entry_name?: boolean): Record; } + +export = WebpackWatchedGlobEntries; diff --git a/types/webpack-watched-glob-entries-plugin/webpack-watched-glob-entries-plugin-tests.ts b/types/webpack-watched-glob-entries-plugin/webpack-watched-glob-entries-plugin-tests.ts index 1c87b080a1..f689c11c7b 100644 --- a/types/webpack-watched-glob-entries-plugin/webpack-watched-glob-entries-plugin-tests.ts +++ b/types/webpack-watched-glob-entries-plugin/webpack-watched-glob-entries-plugin-tests.ts @@ -1,4 +1,4 @@ -import GlobEntriesPlugin from 'webpack-watched-glob-entries-plugin'; +import GlobEntriesPlugin = require('webpack-watched-glob-entries-plugin'); new GlobEntriesPlugin(); // $ExpectType WebpackWatchedGlobEntries