Skip to content

Commit

Permalink
🐛 Fix type declarations (closes #209)
Browse files Browse the repository at this point in the history
  • Loading branch information
vialoh committed Sep 28, 2023
1 parent e266e74 commit 7ee8d75
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions typings/webpack-ext-reloader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ export interface IExtensionReloaderInstance {
apply(compiler: Compiler): void;
}

export type ExtensionReloader = new (options?: IPluginOptions) => IExtensionReloaderInstance;
export declare class ExtensionReloader implements IExtensionReloaderInstance {
constructor(options?: IPluginOptions);

declare module "webpack-extension-reloader" {
apply(compiler: Compiler): void;
}

export default ExtensionReloader;

declare module "webpack-ext-reloader" {
export default ExtensionReloader;
export = IExtensionReloaderInstance;
}

0 comments on commit 7ee8d75

Please sign in to comment.