mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Terminal output color settings for webpack stats (#31583)
Webpack stats support terminal color definition string as such:
```json
colors: {
green: '\u001b[32m',
},
```
This commit is contained in:
committed by
John Reilly
parent
37c37a0e2a
commit
f91a63c5e3
Vendored
+2
-1
@@ -15,6 +15,7 @@
|
||||
// John Reilly <https://github.com/johnnyreilly>
|
||||
// Ryan Waskiewicz <https://github.com/rwaskiewicz>
|
||||
// Kyle Uehlein <https://github.com/kuehlein>
|
||||
// Grgur Grisogono <https://github.com/grgur>
|
||||
// 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;
|
||||
|
||||
Reference in New Issue
Block a user