table.d.ts 732 B

12345678910111213141516171819202122232425
  1. declare namespace table {
  2. interface IOptions {
  3. border?: {
  4. topBody?: string;
  5. topJoin?: string;
  6. topLeft?: string;
  7. topRight?: string;
  8. bottomBody?: string;
  9. bottomJoin?: string;
  10. bottomLeft?: string;
  11. bottomRight?: string;
  12. bodyLeft?: string;
  13. bodyRight?: string;
  14. bodyJoin?: string;
  15. joinBody?: string;
  16. joinLeft?: string;
  17. joinRight?: string;
  18. joinJoin?: string;
  19. };
  20. }
  21. function parse(table: string, options?: IOptions): Array<string[]>;
  22. }
  23. declare function table(rows: Array<string[]>, options?: table.IOptions): string;
  24. export = table;