forked from sheetjs/sheetjs
SheetJS
27af8a6d6a
- read and readFile accept opts argument: o cellNF (default false) true -> cell.z holds number format string o sheetStubs (default true) false -> stub cells not emitted - name consistency (parse_workbook -> parse_wb_xml) - README updates - CONTRIBUTING notes added
33 lines
481 B
TypeScript
33 lines
481 B
TypeScript
interface Cell {
|
|
v;
|
|
w?: string;
|
|
t?: string;
|
|
f?: string;
|
|
r?: string;
|
|
h?: string;
|
|
c?: any;
|
|
z?: string;
|
|
}
|
|
|
|
interface Worksheet {
|
|
[key: string]: Cell;
|
|
}
|
|
|
|
interface Worksheets {
|
|
[key: string]: Worksheet;
|
|
}
|
|
|
|
interface Workbook {
|
|
SheetNames: string[];
|
|
Sheets: Worksheets;
|
|
}
|
|
|
|
interface XLSX {
|
|
verbose: Number;
|
|
readFile(filename: string): Workbook;
|
|
utils: {
|
|
get_formulae(worksheet: Worksheet): string[];
|
|
make_csv(worksheet: Worksheet): string;
|
|
};
|
|
}
|