From f91a63c5e3d276fa60e11dbbe3538d27a44fadc2 Mon Sep 17 00:00:00 2001 From: Grgur Grisogono Date: Fri, 21 Dec 2018 12:39:27 +0100 Subject: [PATCH] Terminal output color settings for webpack stats (#31583) Webpack stats support terminal color definition string as such: ```json colors: { green: '\u001b[32m', }, ``` --- types/webpack/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index 40ce95bcad..469fd67076 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -15,6 +15,7 @@ // John Reilly // Ryan Waskiewicz // Kyle Uehlein +// Grgur Grisogono // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -1228,7 +1229,7 @@ declare namespace webpack { interface ToStringOptionsObject extends ToJsonOptionsObject { /** `webpack --colors` equivalent */ - colors?: boolean; + colors?: boolean | string; } type ToStringOptions = Preset | ToStringOptionsObject;