fix(build): modernize build configuration and tighten TypeScript typings
This commit is contained in:
@@ -31,11 +31,14 @@ export class UpdateNotifier {
|
||||
/**
|
||||
* Colorize a string if colors are enabled
|
||||
*/
|
||||
private colorize(text: string, color: any = DEFAULT_MESSAGE_COLOR): string {
|
||||
private colorize(
|
||||
text: string,
|
||||
color: plugins.consolecolor.TColorName = DEFAULT_MESSAGE_COLOR
|
||||
): string {
|
||||
if (!this.useColors) {
|
||||
return text;
|
||||
}
|
||||
return plugins.consolecolor.coloredString(text, color as any);
|
||||
return plugins.consolecolor.coloredString(text, color);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user