colors.d.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. declare function print(input: string | boolean | number): string;
  2. declare function print(input: undefined | void): undefined;
  3. declare function print(input: null): null;
  4. type Colorize = typeof print;
  5. export declare const $: { enabled: boolean };
  6. // Colors
  7. export declare const black: Colorize;
  8. export declare const red: Colorize;
  9. export declare const green: Colorize;
  10. export declare const yellow: Colorize;
  11. export declare const blue: Colorize;
  12. export declare const magenta: Colorize;
  13. export declare const cyan: Colorize;
  14. export declare const white: Colorize;
  15. export declare const gray: Colorize;
  16. export declare const grey: Colorize;
  17. // Backgrounds
  18. export declare const bgBlack: Colorize;
  19. export declare const bgRed: Colorize;
  20. export declare const bgGreen: Colorize;
  21. export declare const bgYellow: Colorize;
  22. export declare const bgBlue: Colorize;
  23. export declare const bgMagenta: Colorize;
  24. export declare const bgCyan: Colorize;
  25. export declare const bgWhite: Colorize;
  26. // Modifiers
  27. export declare const reset: Colorize;
  28. export declare const bold: Colorize;
  29. export declare const dim: Colorize;
  30. export declare const italic: Colorize;
  31. export declare const underline: Colorize;
  32. export declare const inverse: Colorize;
  33. export declare const hidden: Colorize;
  34. export declare const strikethrough: Colorize;