fix(build): modernize build configuration and tighten TypeScript typings

This commit is contained in:
2026-05-01 10:55:45 +00:00
parent 1f2937b387
commit 8b22c004ba
13 changed files with 4664 additions and 5489 deletions
+5 -2
View File
@@ -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);
}
/**