UNPKG

@rawcmd/typewriters

Version:

Collection of typewriters for styling command-line messages for Rawcmd.

15 lines (14 loc) 488 B
import { TextAlign } from '@rawcmd/text'; export interface RowTypewriterOptions { separatorSymbol?: string; truncationSymbol?: string; } export interface ColumnRowTypewriterOptions { index: number; width?: number; textLength?: number; textWrap?: boolean; textAlign?: TextAlign; } export declare type RowTypewriterData = any[]; export declare function rowTypewriter(columns?: ColumnRowTypewriterOptions[], options?: RowTypewriterOptions): (data: any[]) => any;