mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
This cast *shall* work...
This commit is contained in:
@@ -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])()
|
||||
(<ansi.Cursor>(((<(...anything: any[]) => ansi.Cursor> cursor[color])()
|
||||
.bold()
|
||||
.bg)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']() as ansi.Cursor)
|
||||
.bg)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']()))
|
||||
.write(
|
||||
`Hello, bold ${cname} world!\n`
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user