UNPKG

520 BTypeScriptView Raw
1import Base from './base';
2import Row from './row';
3import { OneDArray, TCell, TwoDArray } from './types';
4declare class Tabular extends Base {
5 private _rows;
6 private _length;
7 constructor(rows?: Row[] | Row);
8 get rows(): Row[];
9 set rows(rows: Row[]);
10 get length(): number;
11 set length(len: number);
12 toArray(): TCell[][];
13 static fromRows(rows: Row[]): Tabular;
14 static fromArray<T extends TCell>(data: OneDArray<T> | TwoDArray<T>): Tabular;
15}
16export default Tabular;