12 lines
730 B
TypeScript
12 lines
730 B
TypeScript
declare let mode: 'chalk' | 'tags' | 'disabled';
|
|
export declare function setMode(newMode: typeof mode): void;
|
|
declare type ColorizerFunction = (...strings: string[]) => string;
|
|
declare type AllColorOptions = Extract<typeof allColors[keyof typeof allColors], string>;
|
|
declare type Colored = {
|
|
[key in AllColorOptions]: ColoredFunction;
|
|
};
|
|
declare type ColoredFunction = ColorizerFunction & Colored;
|
|
declare const allColors: readonly ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white", "gray", "grey", "blackBright", "redBright", "greenBright", "yellowBright", "blueBright", "magentaBright", "cyanBright", "whiteBright", "italic", "bold", "underline"];
|
|
export declare function colored(): Colored;
|
|
export {};
|