mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
ansicolors: support colors as functions
This commit is contained in:
Vendored
+37
-36
@@ -4,41 +4,42 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface Colors extends String {
|
||||
white: Colors
|
||||
black: Colors
|
||||
blue: Colors
|
||||
cyan: Colors
|
||||
green: Colors
|
||||
magenta: Colors
|
||||
red: Colors
|
||||
yellow: Colors
|
||||
brightBlack: Colors
|
||||
brightRed: Colors
|
||||
brightGreen: Colors
|
||||
brightYellow: Colors
|
||||
brightBlue: Colors
|
||||
brightMagenta: Colors
|
||||
brightCyan: Colors
|
||||
brightWhite: Colors
|
||||
bgBlack: Colors
|
||||
bgRed: Colors
|
||||
bgGreen: Colors
|
||||
bgYellow: Colors
|
||||
bgBlue: Colors
|
||||
bgMagenta: Colors
|
||||
bgCyan: Colors
|
||||
bgWhite: Colors
|
||||
bgBrightBlack: Colors
|
||||
bgBrightRed: Colors
|
||||
bgBrightGreen: Colors
|
||||
bgBrightYellow: Colors
|
||||
bgBrightBlue: Colors
|
||||
bgBrightMagenta: Colors
|
||||
bgBrightCyan: Colors
|
||||
bgBrightWhite: Colors
|
||||
open: Colors
|
||||
close: Colors
|
||||
colors: Colors
|
||||
(value: string): string
|
||||
white: this
|
||||
black: this
|
||||
blue: this
|
||||
cyan: this
|
||||
green: this
|
||||
magenta: this
|
||||
red: this
|
||||
yellow: this
|
||||
brightBlack: this
|
||||
brightRed: this
|
||||
brightGreen: this
|
||||
brightYellow: this
|
||||
brightBlue: this
|
||||
brightMagenta: this
|
||||
brightCyan: this
|
||||
brightWhite: this
|
||||
bgBlack: this
|
||||
bgRed: this
|
||||
bgGreen: this
|
||||
bgYellow: this
|
||||
bgBlue: this
|
||||
bgMagenta: this
|
||||
bgCyan: this
|
||||
bgWhite: this
|
||||
bgBrightBlack: this
|
||||
bgBrightRed: this
|
||||
bgBrightGreen: this
|
||||
bgBrightYellow: this
|
||||
bgBrightBlue: this
|
||||
bgBrightMagenta: this
|
||||
bgBrightCyan: this
|
||||
bgBrightWhite: this
|
||||
open: this
|
||||
close: this
|
||||
colors: this
|
||||
}
|
||||
declare var colors: Colors
|
||||
declare const colors: Colors
|
||||
export default colors
|
||||
|
||||
Reference in New Issue
Block a user