@stacksjs/clapp
Version:
A toolkit for building CLI prompts in TypeScript.
24 lines • 899 B
TypeScript
import { } from './common';
import type { CommonOptions } from './common';
// TODO: update through clarity
export declare const log: Log;
export declare interface LogMessageOptions extends CommonOptions {
symbol?: string
spacing?: number
secondarySymbol?: string
}
export declare interface Log {
message: (message: string | string[], opts?: LogMessageOptions) => void
info: (message: string, opts?: LogMessageOptions) => void
success: (message: string, opts?: LogMessageOptions) => void
step: (message: string, opts?: LogMessageOptions) => void
warn: (message: string, opts?: LogMessageOptions) => void
warning: (message: string, opts?: LogMessageOptions) => void
error: (message: string, opts?: LogMessageOptions) => void
custom: (
symbol: string,
message: string | string[],
color: string | ((text: string) => string),
opts?: LogMessageOptions,
) => void
}