forked from alexeyraspopov/picocolors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpicocolors.d.ts
37 lines (34 loc) · 906 Bytes
/
picocolors.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
declare const pc: Colors
export default pc
// export type Formatter = (input: string | number | null | undefined) => string
type Formatter = <T extends string>(input: T) => T
interface Colors {
isColorSupported: boolean
code: Formatter
string: Formatter
reset: Formatter
bold: Formatter
dim: Formatter
italic: Formatter
underline: Formatter
inverse: Formatter
hidden: Formatter
strikethrough: Formatter
black: Formatter
red: Formatter
green: Formatter
yellow: Formatter
blue: Formatter
magenta: Formatter
cyan: Formatter
white: Formatter
gray: Formatter
bgBlack: Formatter
bgRed: Formatter
bgGreen: Formatter
bgYellow: Formatter
bgBlue: Formatter
bgMagenta: Formatter
bgCyan: Formatter
bgWhite: Formatter
}