You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.d.ts 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. declare module "colorette" {
  2. type Color = (text: string | number) => string
  3. interface Colorette {
  4. reset: Color
  5. bold: Color
  6. dim: Color
  7. italic: Color
  8. underline: Color
  9. inverse: Color
  10. hidden: Color
  11. strikethrough: Color
  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. bgBlack: Color
  22. bgRed: Color
  23. bgGreen: Color
  24. bgYellow: Color
  25. bgBlue: Color
  26. bgMagenta: Color
  27. bgCyan: Color
  28. bgWhite: Color
  29. blackBright: Color
  30. redBright: Color
  31. greenBright: Color
  32. yellowBright: Color
  33. blueBright: Color
  34. magentaBright: Color
  35. cyanBright: Color
  36. whiteBright: Color
  37. bgBlackBright: Color
  38. bgRedBright: Color
  39. bgGreenBright: Color
  40. bgYellowBright: Color
  41. bgBlueBright: Color
  42. bgMagentaBright: Color
  43. bgCyanBright: Color
  44. bgWhiteBright: Color
  45. }
  46. const reset: Color
  47. const bold: Color
  48. const dim: Color
  49. const italic: Color
  50. const underline: Color
  51. const inverse: Color
  52. const hidden: Color
  53. const strikethrough: Color
  54. const black: Color
  55. const red: Color
  56. const green: Color
  57. const yellow: Color
  58. const blue: Color
  59. const magenta: Color
  60. const cyan: Color
  61. const white: Color
  62. const gray: Color
  63. const bgBlack: Color
  64. const bgRed: Color
  65. const bgGreen: Color
  66. const bgYellow: Color
  67. const bgBlue: Color
  68. const bgMagenta: Color
  69. const bgCyan: Color
  70. const bgWhite: Color
  71. const blackBright: Color
  72. const redBright: Color
  73. const greenBright: Color
  74. const yellowBright: Color
  75. const blueBright: Color
  76. const magentaBright: Color
  77. const cyanBright: Color
  78. const whiteBright: Color
  79. const bgBlackBright: Color
  80. const bgRedBright: Color
  81. const bgGreenBright: Color
  82. const bgYellowBright: Color
  83. const bgBlueBright: Color
  84. const bgMagentaBright: Color
  85. const bgCyanBright: Color
  86. const bgWhiteBright: Color
  87. const isColorSupported: boolean
  88. function createColors(options?: { useColor: boolean }): Colorette
  89. }