mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Forcing TypeScript >= 2.1 is the only apparent way.
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()}`);
|
||||
|
||||
(<ansi.Cursor>(((<(...anything: any[]) => ansi.Cursor> cursor[color])()
|
||||
((<(...anything: any[]) => ansi.Cursor> cursor[color])()
|
||||
.bold()
|
||||
.bg)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']()))
|
||||
.bg)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']()
|
||||
.write(
|
||||
`Hello, bold ${cname} world!\n`
|
||||
)
|
||||
|
||||
Vendored
+1
@@ -2,6 +2,7 @@
|
||||
// Project: https://www.npmjs.com/package/ansi
|
||||
// Definitions by: Gustavo6046 <https://github.com/Gustavo6046>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript version: 2.1
|
||||
|
||||
/**
|
||||
* References:
|
||||
|
||||
Reference in New Issue
Block a user