From b7d01f312373d6aeb891b016718161f462622508 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Fri, 7 Apr 2023 11:17:48 +1200 Subject: [PATCH] fix: represent export correctly in types --- src/index.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index e403a76..fd1289d 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -9,7 +9,9 @@ interface IOptions { verbose: boolean; } -export type WebpackRemoveEmptyScriptsPluginOptions = Partial; +declare namespace WebpackRemoveEmptyScriptsPlugin { + export type Options = Partial; +} declare class WebpackRemoveEmptyScriptsPlugin implements WebpackPluginInstance { [index: string]: any; @@ -17,9 +19,9 @@ declare class WebpackRemoveEmptyScriptsPlugin implements WebpackPluginInstance { public static STAGE_BEFORE_PROCESS_PLUGINS: number; public static STAGE_AFTER_PROCESS_PLUGINS: number; - constructor(options: WebpackRemoveEmptyScriptsPluginOptions); + constructor(options: WebpackRemoveEmptyScriptsPlugin.Options); apply(compiler: Compiler): void; } -export default WebpackRemoveEmptyScriptsPlugin; +export = WebpackRemoveEmptyScriptsPlugin;