console-table-printer
Version:
Printing pretty tables on console log
15 lines (14 loc) • 369 B
TypeScript
import { ALIGNMENTS, COLORS } from '../utils/table-constants';
export type ALIGNMENT = (typeof ALIGNMENTS)[number];
export type COLOR = (typeof COLORS)[number];
export interface Dictionary {
[key: string]: any;
}
export interface CharLengthDict {
[key: string]: number;
}
export interface Row {
color: COLOR;
separator: boolean;
text: Dictionary;
}