sheetjs-clone/misc/xl.d.ts

66 lines
1.2 KiB
TypeScript
Raw Normal View History

///<reference path='cfb.d.ts'/>
2013-11-15 13:35:01 +00:00
interface Cell {
v;
w?: string;
t?: string;
f?: string;
r?: string;
h?: string;
c?: any;
z?: string;
ixfe?: number;
}
interface CellAddress {
c: number;
r: number;
}
interface CellRange {
s: CellAddress;
e: CellAddress;
2013-11-15 13:35:01 +00:00
}
interface WorksheetBase {
'!range':CellRange;
'!ref':string;
}
interface Worksheet extends WorksheetBase {
2013-11-15 13:35:01 +00:00
[key: string]: Cell;
}
interface Worksheets {
[key: string]: Worksheet;
}
interface Workbook {
SheetNames: string[];
Sheets: Worksheets;
}
interface XLSX {
parse_xlscfb(cfb:CFBContainer): Workbook;
read;
2013-11-15 13:35:01 +00:00
readFile(filename: string): Workbook;
utils: {
encode_col(col: number): string;
encode_row(row: number): string;
encode_cell(cell: CellAddress): string;
encode_range;
decode_col(col: string): number;
decode_row(row: string): number;
split_cell(cell: string): string[];
decode_cell(cell: string): CellAddress;
decode_range(cell: string): CellRange;
sheet_to_csv(worksheet: Worksheet): string;
2013-11-15 13:35:01 +00:00
get_formulae(worksheet: Worksheet): string[];
make_csv(worksheet: Worksheet): string;
sheet_to_row_object_array(worksheet: Worksheet): Object[];
2013-11-15 13:35:01 +00:00
};
verbose: Number;
CFB:CFB;
main;
2013-11-15 13:35:01 +00:00
}