From 6f1b1f707b46593ccdb56820b378a0eb899cdcdd Mon Sep 17 00:00:00 2001 From: ZSkycat Date: Thu, 21 Jun 2018 08:09:02 +0800 Subject: [PATCH 1/2] [webpack-hot-client] fix Options.logLevel type, add Options.validTargets --- types/webpack-hot-client/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/webpack-hot-client/index.d.ts b/types/webpack-hot-client/index.d.ts index 295e6819be..ae0d91390a 100644 --- a/types/webpack-hot-client/index.d.ts +++ b/types/webpack-hot-client/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for webpack-hot-client 3.0 // Project: https://github.com/webpack-contrib/webpack-hot-client // Definitions by: Ryan Clark +// ZSkycat // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -36,7 +37,7 @@ declare namespace WebpackHotClient { /** Enable HTTPS */ https?: boolean; /** Level of information for webpack-hot-client to output */ - logLevel?: 'trace' | 'debug' | 'info' | 'warn' | 'error'; + logLevel?: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent'; /** Prepend timestamp to each log line */ logTime?: boolean; /** Port that the WebSocket listens on */ @@ -47,5 +48,7 @@ declare namespace WebpackHotClient { server?: net.Server; /** Webpack stats configuration */ stats?: webpack.Options.Stats; + /** Webpack compile target */ + validTargets?: string[], } } From 0361ef3b88fea4eb3269e596b8c5d0bdc6e4f98e Mon Sep 17 00:00:00 2001 From: ZSkycat Date: Thu, 21 Jun 2018 08:22:28 +0800 Subject: [PATCH 2/2] [webpack-hot-client] fix lint error --- types/webpack-hot-client/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/webpack-hot-client/index.d.ts b/types/webpack-hot-client/index.d.ts index ae0d91390a..9b4e2444cf 100644 --- a/types/webpack-hot-client/index.d.ts +++ b/types/webpack-hot-client/index.d.ts @@ -49,6 +49,6 @@ declare namespace WebpackHotClient { /** Webpack stats configuration */ stats?: webpack.Options.Stats; /** Webpack compile target */ - validTargets?: string[], + validTargets?: string[]; } }