2017-02-03 20:50:45 +00:00
|
|
|
/*::
|
|
|
|
type ZIPFile = any;
|
|
|
|
|
2017-03-12 18:02:43 +00:00
|
|
|
type XLString = {
|
|
|
|
t:string;
|
|
|
|
r?:string;
|
|
|
|
h?:string;
|
|
|
|
};
|
|
|
|
|
|
|
|
type WorkbookFile = any;
|
|
|
|
|
2017-02-03 20:50:45 +00:00
|
|
|
type Workbook = {
|
|
|
|
SheetNames: Array<string>;
|
|
|
|
Sheets: any;
|
2017-03-12 18:02:43 +00:00
|
|
|
|
|
|
|
Props?: any;
|
|
|
|
Custprops?: any;
|
2017-03-18 23:25:50 +00:00
|
|
|
Themes?: any;
|
2017-03-12 18:02:43 +00:00
|
|
|
|
2017-03-31 18:46:42 +00:00
|
|
|
Workbook?: WBWBProps;
|
|
|
|
|
2017-03-12 18:02:43 +00:00
|
|
|
SSF?: {[n:number]:string};
|
|
|
|
cfb?: any;
|
2017-02-03 20:50:45 +00:00
|
|
|
};
|
|
|
|
|
2017-03-31 18:46:42 +00:00
|
|
|
type WorkbookProps = {
|
|
|
|
SheetNames?: Array<string>;
|
|
|
|
}
|
|
|
|
|
|
|
|
type WBWBProps = {
|
|
|
|
Sheets: Array<WBWSProp>;
|
|
|
|
};
|
|
|
|
|
|
|
|
type WBWSProp = {
|
|
|
|
Hidden?: number;
|
|
|
|
name?: string;
|
|
|
|
}
|
|
|
|
|
2017-02-10 19:23:01 +00:00
|
|
|
interface CellAddress {
|
|
|
|
r:number;
|
|
|
|
c:number;
|
|
|
|
};
|
2017-03-25 01:36:40 +00:00
|
|
|
type CellAddrSpec = CellAddress | string;
|
2017-02-10 19:23:01 +00:00
|
|
|
|
|
|
|
type Cell = any;
|
|
|
|
|
|
|
|
type Range = {
|
|
|
|
s: CellAddress;
|
|
|
|
e: CellAddress;
|
|
|
|
}
|
|
|
|
type Worksheet = any;
|
|
|
|
|
|
|
|
type Sheet2CSVOpts = any;
|
|
|
|
type Sheet2JSONOpts = any;
|
|
|
|
|
|
|
|
type ParseOpts = any;
|
|
|
|
|
|
|
|
type WriteOpts = any;
|
|
|
|
type WriteFileOpts = any;
|
|
|
|
|
|
|
|
type RawData = any;
|
|
|
|
|
|
|
|
interface TypeOpts {
|
|
|
|
type:string;
|
|
|
|
}
|
|
|
|
|
2017-02-03 20:50:45 +00:00
|
|
|
type XLSXModule = any;
|
2017-02-10 19:23:01 +00:00
|
|
|
|
2017-03-12 18:02:43 +00:00
|
|
|
type SST = {
|
|
|
|
[n:number]:XLString;
|
|
|
|
Count:number;
|
|
|
|
Unique:number;
|
|
|
|
push(x:XLString):void;
|
|
|
|
length:number;
|
|
|
|
};
|
|
|
|
|
2017-02-10 19:23:01 +00:00
|
|
|
type Comment = any;
|
2017-03-20 09:02:25 +00:00
|
|
|
|
2017-05-09 18:07:57 +00:00
|
|
|
type RowInfo = {
|
|
|
|
hidden:?boolean; // if true, the row is hidden
|
|
|
|
|
|
|
|
hpx?:number; // height in screen pixels
|
|
|
|
hpt?:number; // height in points
|
|
|
|
};
|
|
|
|
|
2017-03-20 09:02:25 +00:00
|
|
|
type ColInfo = {
|
2017-05-09 18:07:57 +00:00
|
|
|
hidden:?boolean; // if true, the column is hidden
|
|
|
|
|
|
|
|
wpx?:number; // width in screen pixels
|
|
|
|
width:number; // width in Excel's "Max Digit Width", width*256 is integral
|
|
|
|
wch?:number; // width in characters
|
|
|
|
|
|
|
|
MDW?:number; // Excel's "Max Digit Width" unit, always integral
|
2017-03-20 09:02:25 +00:00
|
|
|
};
|
2017-03-25 01:36:40 +00:00
|
|
|
|
2017-05-09 18:07:57 +00:00
|
|
|
|
2017-03-25 01:36:40 +00:00
|
|
|
type AOA = Array<Array<any> >;
|
2017-02-03 20:50:45 +00:00
|
|
|
*/
|