Server IP : 92.205.26.207 / Your IP : 216.73.216.16 Web Server : Apache System : Linux 207.26.205.92.host.secureserver.net 4.18.0-553.60.1.el8_10.x86_64 #1 SMP Thu Jul 10 04:01:16 EDT 2025 x86_64 User : zikryat ( 1002) PHP Version : 8.3.23 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/zikryat/public_html/node_modules/serialize-javascript/../cli-table3/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
declare namespace CliTable3 { type CharName = "top" | "top-mid" | "top-left" | "top-right" | "bottom" | "bottom-mid" | "bottom-left" | "bottom-right" | "left" | "left-mid" | "mid" | "mid-mid" | "right" | "right-mid" | "middle"; type HorizontalAlignment = "left" | "center" | "right"; type VerticalAlignment = "top" | "center" | "bottom"; interface TableOptions { truncate: string; colWidths: Array<number | null>; rowHeights: Array<number | null>; colAligns: HorizontalAlignment[]; rowAligns: VerticalAlignment[]; head: string[]; wordWrap: boolean; wrapOnWordBoundary: boolean; } interface TableInstanceOptions extends TableOptions { chars: Record<CharName, string>; style: { "padding-left": number; "padding-right": number; head: string[]; border: string[]; compact: boolean; }; } interface TableConstructorOptions extends Partial<TableOptions> { chars?: Partial<Record<CharName, string>>; style?: Partial<TableInstanceOptions["style"]>; } type CellValue = boolean | number | string | null | undefined; interface CellOptions { content: CellValue; chars?: Partial<Record<CharName, string>>; truncate?: string; colSpan?: number; rowSpan?: number; hAlign?: HorizontalAlignment; vAlign?: VerticalAlignment; style?: { "padding-left"?: number; "padding-right"?: number; head?: string[]; border?: string[]; }; } interface GenericTable<T> extends Array<T> { options: TableInstanceOptions; readonly width: number; } type Table = GenericTable<HorizontalTableRow|VerticalTableRow|CrossTableRow>; type Cell = CellValue | CellOptions; type HorizontalTableRow = Cell[]; interface VerticalTableRow { [name: string]: Cell; } interface CrossTableRow { [name: string]: Cell[]; } } interface CliTable3 { new (options?: CliTable3.TableConstructorOptions): CliTable3.Table; readonly prototype: CliTable3.Table; } declare const CliTable3: CliTable3; export = CliTable3;