From b1340a2e6ea4f8cc34f3c1e64ff277e3222dced4 Mon Sep 17 00:00:00 2001 From: Joel Spadin Date: Sun, 3 Mar 2019 21:13:02 -0600 Subject: [PATCH] Change export default to export = --- types/webpack-watched-glob-entries-plugin/index.d.ts | 6 ++++-- .../webpack-watched-glob-entries-plugin-tests.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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