safe.d.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 const enabled: boolean;
  6. export function enable(): void;
  7. export function disable(): void;
  8. export function setTheme(theme: any): void;
  9. export function strip(str: string): string;
  10. export function stripColors(str: string): string;
  11. export function black(str: string): string;
  12. export function red(str: string): string;
  13. export function green(str: string): string;
  14. export function yellow(str: string): string;
  15. export function blue(str: string): string;
  16. export function magenta(str: string): string;
  17. export function cyan(str: string): string;
  18. export function white(str: string): string;
  19. export function gray(str: string): string;
  20. export function grey(str: string): string;
  21. export function bgBlack(str: string): string;
  22. export function bgRed(str: string): string;
  23. export function bgGreen(str: string): string;
  24. export function bgYellow(str: string): string;
  25. export function bgBlue(str: string): string;
  26. export function bgMagenta(str: string): string;
  27. export function bgCyan(str: string): string;
  28. export function bgWhite(str: string): string;
  29. export function reset(str: string): string;
  30. export function bold(str: string): string;
  31. export function dim(str: string): string;
  32. export function italic(str: string): string;
  33. export function underline(str: string): string;
  34. export function inverse(str: string): string;
  35. export function hidden(str: string): string;
  36. export function strikethrough(str: string): string;
  37. export function rainbow(str: string): string;
  38. export function zebra(str: string): string;
  39. export function america(str: string): string;
  40. export function trap(str: string): string;
  41. export function random(str: string): string;
  42. export function zalgo(str: string): string;