Fixed slight issues regarding casts.

This commit is contained in:
Gustavo R. 'Gustavo6046' Rehermann
2018-11-01 12:10:26 -03:00
parent 51f918e8c9
commit f09c1b7382
+2 -2
View File
@@ -22,9 +22,9 @@ Object.keys({
}).forEach((color) => {
const cname = color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`);
(((<(...anything: any[]) => ansi.Cursor> cursor[color])()
((<(...anything: any[]) => ansi.Cursor> cursor[color])()
.bold()
.bg as ansi.Colorer)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']() as ansi.Cursor)
.bg)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']()
.write(
`Hello, bold ${cname} world!\n`
)