knip
Version:
Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects
19 lines (18 loc) • 644 B
TypeScript
import { styleText } from 'node:util';
type Modifier = Parameters<typeof styleText>[0];
type Input = string | number | null | undefined;
declare const st: {
red: (text: Input) => string;
green: (text: Input) => string;
yellow: (text: Input) => string;
cyan: (text: Input) => string;
white: (text: Input) => string;
gray: (text: Input) => string;
dim: (text: Input) => string;
underline: (text: Input) => string;
cyanBright: (text: Input) => string;
whiteBright: (text: Input) => string;
yellowBright: (text: Input) => string;
style: (mods: Modifier, text: Input) => string;
};
export default st;