Skip to content

Commit 3159568

Browse files
committed
added index.d.ts (#7)
1 parent 2bd1fa2 commit 3159568

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/index.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { Compiler, WebpackPluginInstance } from 'webpack';
2+
3+
interface IOptions {
4+
enabled: boolean;
5+
extensions: Array<string> | RegExp,
6+
ignore: string | RegExp | string[] | RegExp[],
7+
remove: RegExp,
8+
verbose: boolean;
9+
}
10+
11+
export type WebpackRemoveEmptyScriptsPluginOptions = Partial<IOptions>;
12+
13+
declare class WebpackRemoveEmptyScriptsPlugin implements WebpackPluginInstance {
14+
constructor(options: WebpackRemoveEmptyScriptsPluginOptions);
15+
apply(compiler: Compiler): void;
16+
}
17+
18+
export default WebpackRemoveEmptyScriptsPlugin;

0 commit comments

Comments
 (0)