[6a3a178] | 1 | // Type definitions for Colors.js 1.2
|
---|
| 2 | // Project: https://github.com/Marak/colors.js
|
---|
| 3 | // Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Staffan Eketorp <https://github.com/staeke>
|
---|
| 4 | // Definitions: https://github.com/Marak/colors.js
|
---|
| 5 |
|
---|
| 6 | export interface Color {
|
---|
| 7 | (text: string): string;
|
---|
| 8 |
|
---|
| 9 | strip: Color;
|
---|
| 10 | stripColors: Color;
|
---|
| 11 |
|
---|
| 12 | black: Color;
|
---|
| 13 | red: Color;
|
---|
| 14 | green: Color;
|
---|
| 15 | yellow: Color;
|
---|
| 16 | blue: Color;
|
---|
| 17 | magenta: Color;
|
---|
| 18 | cyan: Color;
|
---|
| 19 | white: Color;
|
---|
| 20 | gray: Color;
|
---|
| 21 | grey: Color;
|
---|
| 22 |
|
---|
| 23 | bgBlack: Color;
|
---|
| 24 | bgRed: Color;
|
---|
| 25 | bgGreen: Color;
|
---|
| 26 | bgYellow: Color;
|
---|
| 27 | bgBlue: Color;
|
---|
| 28 | bgMagenta: Color;
|
---|
| 29 | bgCyan: Color;
|
---|
| 30 | bgWhite: Color;
|
---|
| 31 |
|
---|
| 32 | reset: Color;
|
---|
| 33 | bold: Color;
|
---|
| 34 | dim: Color;
|
---|
| 35 | italic: Color;
|
---|
| 36 | underline: Color;
|
---|
| 37 | inverse: Color;
|
---|
| 38 | hidden: Color;
|
---|
| 39 | strikethrough: Color;
|
---|
| 40 |
|
---|
| 41 | rainbow: Color;
|
---|
| 42 | zebra: Color;
|
---|
| 43 | america: Color;
|
---|
| 44 | trap: Color;
|
---|
| 45 | random: Color;
|
---|
| 46 | zalgo: Color;
|
---|
| 47 | }
|
---|
| 48 |
|
---|
| 49 | export function enable(): void;
|
---|
| 50 | export function disable(): void;
|
---|
| 51 | export function setTheme(theme: any): void;
|
---|
| 52 |
|
---|
| 53 | export let enabled: boolean;
|
---|
| 54 |
|
---|
| 55 | export const strip: Color;
|
---|
| 56 | export const stripColors: Color;
|
---|
| 57 |
|
---|
| 58 | export const black: Color;
|
---|
| 59 | export const red: Color;
|
---|
| 60 | export const green: Color;
|
---|
| 61 | export const yellow: Color;
|
---|
| 62 | export const blue: Color;
|
---|
| 63 | export const magenta: Color;
|
---|
| 64 | export const cyan: Color;
|
---|
| 65 | export const white: Color;
|
---|
| 66 | export const gray: Color;
|
---|
| 67 | export const grey: Color;
|
---|
| 68 |
|
---|
| 69 | export const bgBlack: Color;
|
---|
| 70 | export const bgRed: Color;
|
---|
| 71 | export const bgGreen: Color;
|
---|
| 72 | export const bgYellow: Color;
|
---|
| 73 | export const bgBlue: Color;
|
---|
| 74 | export const bgMagenta: Color;
|
---|
| 75 | export const bgCyan: Color;
|
---|
| 76 | export const bgWhite: Color;
|
---|
| 77 |
|
---|
| 78 | export const reset: Color;
|
---|
| 79 | export const bold: Color;
|
---|
| 80 | export const dim: Color;
|
---|
| 81 | export const italic: Color;
|
---|
| 82 | export const underline: Color;
|
---|
| 83 | export const inverse: Color;
|
---|
| 84 | export const hidden: Color;
|
---|
| 85 | export const strikethrough: Color;
|
---|
| 86 |
|
---|
| 87 | export const rainbow: Color;
|
---|
| 88 | export const zebra: Color;
|
---|
| 89 | export const america: Color;
|
---|
| 90 | export const trap: Color;
|
---|
| 91 | export const random: Color;
|
---|
| 92 | export const zalgo: Color;
|
---|
| 93 |
|
---|
| 94 | declare global {
|
---|
| 95 | interface String {
|
---|
| 96 | strip: string;
|
---|
| 97 | stripColors: string;
|
---|
| 98 |
|
---|
| 99 | black: string;
|
---|
| 100 | red: string;
|
---|
| 101 | green: string;
|
---|
| 102 | yellow: string;
|
---|
| 103 | blue: string;
|
---|
| 104 | magenta: string;
|
---|
| 105 | cyan: string;
|
---|
| 106 | white: string;
|
---|
| 107 | gray: string;
|
---|
| 108 | grey: string;
|
---|
| 109 |
|
---|
| 110 | bgBlack: string;
|
---|
| 111 | bgRed: string;
|
---|
| 112 | bgGreen: string;
|
---|
| 113 | bgYellow: string;
|
---|
| 114 | bgBlue: string;
|
---|
| 115 | bgMagenta: string;
|
---|
| 116 | bgCyan: string;
|
---|
| 117 | bgWhite: string;
|
---|
| 118 |
|
---|
| 119 | reset: string;
|
---|
| 120 | // @ts-ignore
|
---|
| 121 | bold: string;
|
---|
| 122 | dim: string;
|
---|
| 123 | italic: string;
|
---|
| 124 | underline: string;
|
---|
| 125 | inverse: string;
|
---|
| 126 | hidden: string;
|
---|
| 127 | strikethrough: string;
|
---|
| 128 |
|
---|
| 129 | rainbow: string;
|
---|
| 130 | zebra: string;
|
---|
| 131 | america: string;
|
---|
| 132 | trap: string;
|
---|
| 133 | random: string;
|
---|
| 134 | zalgo: string;
|
---|
| 135 | }
|
---|
| 136 | }
|
---|