@blitzjs/display
Version:
Display package for the Blitz CLI
38 lines (37 loc) • 2.27 kB
TypeScript
import c from "chalk";
import { Table } from "console-table-printer";
import ora from "ora";
export declare const table: typeof Table;
export declare const chalk: c.Chalk & c.ChalkFunction & {
supportsColor: false | c.ColorSupport;
Level: c.Level;
Color: ("black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray" | "grey" | "blackBright" | "redBright" | "greenBright" | "yellowBright" | "blueBright" | "magentaBright" | "cyanBright" | "whiteBright") | ("bgBlack" | "bgRed" | "bgGreen" | "bgYellow" | "bgBlue" | "bgMagenta" | "bgCyan" | "bgWhite" | "bgGray" | "bgGrey" | "bgBlackBright" | "bgRedBright" | "bgGreenBright" | "bgYellowBright" | "bgBlueBright" | "bgMagentaBright" | "bgCyanBright" | "bgWhiteBright");
ForegroundColor: "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray" | "grey" | "blackBright" | "redBright" | "greenBright" | "yellowBright" | "blueBright" | "magentaBright" | "cyanBright" | "whiteBright";
BackgroundColor: "bgBlack" | "bgRed" | "bgGreen" | "bgYellow" | "bgBlue" | "bgMagenta" | "bgCyan" | "bgWhite" | "bgGray" | "bgGrey" | "bgBlackBright" | "bgRedBright" | "bgGreenBright" | "bgYellowBright" | "bgBlueBright" | "bgMagentaBright" | "bgCyanBright" | "bgWhiteBright";
Modifiers: "reset" | "bold" | "dim" | "italic" | "underline" | "inverse" | "hidden" | "strikethrough" | "visible";
stderr: c.Chalk & {
supportsColor: false | c.ColorSupport;
};
};
export declare const log: {
withBrand: (str: string) => string;
withWarning: (str: string) => string;
withCaret: (str: string) => string;
withCheck: (str: string) => string;
withX: (str: string) => string;
withProgress: (str: string) => string;
withError: (str: string) => string;
branded: (msg: string) => void;
clearLine: (msg?: string | undefined) => void;
clearConsole: () => void;
error: (msg: string) => void;
warning: (msg: string) => void;
meta: (msg: string) => void;
progress: (msg: string) => void;
spinner: (str: string) => ora.Ora;
success: (msg: string) => void;
variable: (val: any) => string;
info: (msg: string) => void;
debug: any;
Table: typeof Table;
};