index.d.ts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. export interface Color {
  6. (text: string): string;
  7. strip: Color;
  8. stripColors: Color;
  9. black: Color;
  10. red: Color;
  11. green: Color;
  12. yellow: Color;
  13. blue: Color;
  14. magenta: Color;
  15. cyan: Color;
  16. white: Color;
  17. gray: Color;
  18. grey: Color;
  19. bgBlack: Color;
  20. bgRed: Color;
  21. bgGreen: Color;
  22. bgYellow: Color;
  23. bgBlue: Color;
  24. bgMagenta: Color;
  25. bgCyan: Color;
  26. bgWhite: Color;
  27. reset: Color;
  28. bold: Color;
  29. dim: Color;
  30. italic: Color;
  31. underline: Color;
  32. inverse: Color;
  33. hidden: Color;
  34. strikethrough: Color;
  35. rainbow: Color;
  36. zebra: Color;
  37. america: Color;
  38. trap: Color;
  39. random: Color;
  40. zalgo: Color;
  41. }
  42. export function enable(): void;
  43. export function disable(): void;
  44. export function setTheme(theme: any): void;
  45. export let enabled: boolean;
  46. export const strip: Color;
  47. export const stripColors: Color;
  48. export const black: Color;
  49. export const red: Color;
  50. export const green: Color;
  51. export const yellow: Color;
  52. export const blue: Color;
  53. export const magenta: Color;
  54. export const cyan: Color;
  55. export const white: Color;
  56. export const gray: Color;
  57. export const grey: Color;
  58. export const bgBlack: Color;
  59. export const bgRed: Color;
  60. export const bgGreen: Color;
  61. export const bgYellow: Color;
  62. export const bgBlue: Color;
  63. export const bgMagenta: Color;
  64. export const bgCyan: Color;
  65. export const bgWhite: Color;
  66. export const reset: Color;
  67. export const bold: Color;
  68. export const dim: Color;
  69. export const italic: Color;
  70. export const underline: Color;
  71. export const inverse: Color;
  72. export const hidden: Color;
  73. export const strikethrough: Color;
  74. export const rainbow: Color;
  75. export const zebra: Color;
  76. export const america: Color;
  77. export const trap: Color;
  78. export const random: Color;
  79. export const zalgo: Color;
  80. declare global {
  81. interface String {
  82. strip: string;
  83. stripColors: string;
  84. black: string;
  85. red: string;
  86. green: string;
  87. yellow: string;
  88. blue: string;
  89. magenta: string;
  90. cyan: string;
  91. white: string;
  92. gray: string;
  93. grey: string;
  94. bgBlack: string;
  95. bgRed: string;
  96. bgGreen: string;
  97. bgYellow: string;
  98. bgBlue: string;
  99. bgMagenta: string;
  100. bgCyan: string;
  101. bgWhite: string;
  102. reset: string;
  103. // @ts-ignore
  104. bold: string;
  105. dim: string;
  106. italic: string;
  107. underline: string;
  108. inverse: string;
  109. hidden: string;
  110. strikethrough: string;
  111. rainbow: string;
  112. zebra: string;
  113. america: string;
  114. trap: string;
  115. random: string;
  116. zalgo: string;
  117. }
  118. }