From 584d930c6c447aaefb1d8d089be23dce1d1ede57 Mon Sep 17 00:00:00 2001 From: Ryan Clark Date: Thu, 21 Jun 2018 01:25:13 +0100 Subject: [PATCH] Bump version, add validTargets to options --- types/webpack-hot-client/index.d.ts | 4 +++- types/webpack-hot-client/webpack-hot-client-tests.ts | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/types/webpack-hot-client/index.d.ts b/types/webpack-hot-client/index.d.ts index 295e6819be..c6e12cf4a5 100644 --- a/types/webpack-hot-client/index.d.ts +++ b/types/webpack-hot-client/index.d.ts @@ -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 // 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[]; } } diff --git a/types/webpack-hot-client/webpack-hot-client-tests.ts b/types/webpack-hot-client/webpack-hot-client-tests.ts index 29ab2341a7..433c704030 100644 --- a/types/webpack-hot-client/webpack-hot-client-tests.ts +++ b/types/webpack-hot-client/webpack-hot-client-tests.ts @@ -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'] });