Skip to content

Commit bc0fcbc

Browse files
samijaberScriptedAlchemy
authored andcommitted
Add TypeScript declaration file (faceyspacey#90)
1 parent 55eab8e commit bc0fcbc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

index.d.ts

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
declare module 'extract-css-chunks-webpack-plugin' {
2+
import { Loader, Plugin } from 'webpack';
3+
4+
class ExtractCssChunksPlugin extends Plugin {
5+
static loader: Loader;
6+
7+
constructor(options?: ExtractCssChunksPlugin.PluginOptions);
8+
}
9+
10+
namespace ExtractCssChunksPlugin {
11+
interface PluginOptions {
12+
/**
13+
* Options similar to those of `mini-css-extract-plugin`
14+
*/
15+
filename?: string;
16+
chunkFilename?: string;
17+
/**
18+
* we try to automatically inject hot reloading, but if it's not working, use this config
19+
*/
20+
hot?: boolean;
21+
}
22+
}
23+
24+
export = ExtractCssChunksPlugin;
25+
}

0 commit comments

Comments
 (0)