mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Bump version, add validTargets to options
This commit is contained in:
Vendored
+3
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for webpack-hot-client 3.0
|
||||
// Type definitions for webpack-hot-client 4.0
|
||||
// Project: https://github.com/webpack-contrib/webpack-hot-client
|
||||
// Definitions by: Ryan Clark <https://github.com/rynclark>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -47,5 +47,7 @@ declare namespace WebpackHotClient {
|
||||
server?: net.Server;
|
||||
/** Webpack stats configuration */
|
||||
stats?: webpack.Options.Stats;
|
||||
/** Valid build targets */
|
||||
validTargets?: string[];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,3 +4,5 @@ import hot = require('webpack-hot-client');
|
||||
const compiler = webpack();
|
||||
|
||||
hot(compiler, { logLevel: 'info', reload: false });
|
||||
|
||||
hot(compiler, { logLevel: 'info', reload: false, validTargets: ['web', 'node'] });
|
||||
|
||||
Reference in New Issue
Block a user