Skip to content

Commit 2ef5352

Browse files
authored
Merge pull request #8 from lmcsu/v0-ts
index.d.ts for TypeScript support
2 parents 2bd1fa2 + 3159568 commit 2ef5352

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)