From a4418754d29d73b59612c67e32b924ce0dcddcdc Mon Sep 17 00:00:00 2001 From: "Diogo Franco (Kovensky)" Date: Tue, 22 Nov 2016 09:40:53 +0900 Subject: [PATCH] Use interface instead of object type alias --- webpack/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webpack/index.d.ts b/webpack/index.d.ts index ba0fb9cfc4..8928cf6c29 100644 --- a/webpack/index.d.ts +++ b/webpack/index.d.ts @@ -528,11 +528,11 @@ declare namespace webpack { } interface SourceMapDevToolPluginStatic { - new (options?: SourceMapDevToolPluginOptions): Plugin; + // if string | false | null, maps to the filename option + new (options?: string | false | null | SourceMapDevToolPluginOptions): Plugin; } - // if string | false | null, maps to the filename option - type SourceMapDevToolPluginOptions = string | false | null | { + interface SourceMapDevToolPluginOptions { // output filename pattern (false/null to append) filename?: string | false | null, // source map comment pattern (false to not append) @@ -562,11 +562,11 @@ declare namespace webpack { } interface EvalSourceMapDevToolPluginStatic { - new (options?: EvalSourceMapDevToolPluginOptions): Plugin; + // if string | false, maps to the append option + new (options?: string | false | EvalSourceMapDevToolPluginOptions): Plugin; } - // if string | false, maps to the append option - type EvalSourceMapDevToolPluginOptions = string | false | { + interface EvalSourceMapDevToolPluginOptions { append?: false | string, moduleFilenameTemplate?: string, sourceRoot?: string,