UNPKG

downtimer

Version:
15 lines (14 loc) 413 B
/** * 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 {};