downtimer
Version:
Timeouts, but a little more relaxing
15 lines (14 loc) • 413 B
TypeScript
/**
* Colorizer function, takes a string and applies a color to it.
*/
type Colorizer = (s: string) => string;
export default function colors(useColor: boolean): {
readonly func: Colorizer;
readonly type: Colorizer;
readonly file: Colorizer;
readonly quiet: Colorizer;
readonly heading: Colorizer;
readonly error: Colorizer;
};
export type Colors = ReturnType<typeof colors>;
export {};