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>;
|
2017-07-27 20:07:51 +00:00
|
|
|
Sheets: {[name:string]:Worksheet};
|
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-05-13 18:21:22 +00:00
|
|
|
SSF?: SSFTable;
|
2017-03-12 18:02:43 +00:00
|
|
|
cfb?: any;
|
2017-10-02 08:15:36 +00:00
|
|
|
vbaraw?: any;
|
2017-02-03 20:50:45 +00:00
|
|
|
};
|
|
|
|
|
2017-03-31 18:46:42 +00:00
|
|
|
type WBWBProps = {
|
|
|
|
Sheets: Array<WBWSProp>;
|
2017-05-13 18:21:22 +00:00
|
|
|
Names?: Array<any>;
|
2017-12-30 05:40:35 +00:00
|
|
|
Views?: Array<any>;
|
2017-06-01 21:22:11 +00:00
|
|
|
WBProps?: WBProps;
|
2018-04-21 15:16:37 +00:00
|
|
|
SheetNames?: Array<string>;
|
2017-06-01 21:22:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
type WBProps = {
|
2017-06-03 07:19:09 +00:00
|
|
|
allowRefreshQuery?: boolean;
|
|
|
|
autoCompressPictures?: boolean;
|
|
|
|
backupFile?: boolean;
|
|
|
|
checkCompatibility?: boolean;
|
2017-11-20 01:51:14 +00:00
|
|
|
CodeName?: string;
|
2017-06-01 21:22:11 +00:00
|
|
|
date1904?: boolean;
|
2017-06-03 07:19:09 +00:00
|
|
|
defaultThemeVersion?: number;
|
|
|
|
filterPrivacy?: boolean;
|
|
|
|
hidePivotFieldList?: boolean;
|
|
|
|
promptedSolutions?: boolean;
|
|
|
|
publishItems?: boolean;
|
|
|
|
refreshAllConnections?: boolean;
|
|
|
|
saveExternalLinkValues?: boolean;
|
|
|
|
showBorderUnselectedTables?: boolean;
|
|
|
|
showInkAnnotation?: boolean;
|
|
|
|
showObjects?: string;
|
|
|
|
showPivotChartFilter?: boolean;
|
|
|
|
updateLinks?: string;
|
2017-03-31 18:46:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
type WBWSProp = {
|
|
|
|
Hidden?: number;
|
|
|
|
name?: string;
|
2017-11-20 01:51:14 +00:00
|
|
|
CodeName?: string;
|
2017-06-01 21:22:11 +00:00
|
|
|
};
|
2017-03-31 18:46:42 +00:00
|
|
|
|
2017-02-10 19:23:01 +00:00
|
|
|
interface CellAddress {
|
|
|
|
r:number;
|
|
|
|
c:number;
|
2018-04-21 15:16:37 +00:00
|
|
|
cRel?:boolean;
|
|
|
|
rRel?:boolean;
|
2017-02-10 19:23:01 +00:00
|
|
|
};
|
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;
|
2017-05-13 18:21:22 +00:00
|
|
|
type Sheet2HTMLOpts = any;
|
2017-02-10 19:23:01 +00:00
|
|
|
|
|
|
|
type ParseOpts = any;
|
|
|
|
|
|
|
|
type WriteOpts = any;
|
|
|
|
type WriteFileOpts = any;
|
|
|
|
|
|
|
|
type RawData = any;
|
|
|
|
|
|
|
|
interface TypeOpts {
|
2017-07-27 20:07:51 +00:00
|
|
|
type?:string;
|
2017-02-10 19:23:01 +00:00
|
|
|
}
|
|
|
|
|
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-12-30 05:40:35 +00:00
|
|
|
type Comment = {
|
|
|
|
t:string;
|
|
|
|
a?:string;
|
|
|
|
r?:string;
|
|
|
|
h?:string;
|
|
|
|
};
|
|
|
|
|
|
|
|
type RawComment = any;
|
2017-03-20 09:02:25 +00:00
|
|
|
|
2017-05-09 18:07:57 +00:00
|
|
|
type RowInfo = {
|
2017-05-13 18:21:22 +00:00
|
|
|
hidden?:boolean; // if true, the row is hidden
|
2017-05-09 18:07:57 +00:00
|
|
|
|
|
|
|
hpx?:number; // height in screen pixels
|
|
|
|
hpt?:number; // height in points
|
2017-09-22 22:18:51 +00:00
|
|
|
level?:number; // outline / group level
|
2017-05-09 18:07:57 +00:00
|
|
|
};
|
|
|
|
|
2017-03-20 09:02:25 +00:00
|
|
|
type ColInfo = {
|
2017-05-13 18:21:22 +00:00
|
|
|
hidden?:boolean; // if true, the column is hidden
|
2017-05-09 18:07:57 +00:00
|
|
|
|
|
|
|
wpx?:number; // width in screen pixels
|
2017-05-13 18:21:22 +00:00
|
|
|
width?:number; // width in Excel's "Max Digit Width", width*256 is integral
|
2017-05-09 18:07:57 +00:00
|
|
|
wch?:number; // width in characters
|
|
|
|
|
|
|
|
MDW?:number; // Excel's "Max Digit Width" unit, always integral
|
2018-04-21 15:16:37 +00:00
|
|
|
|
|
|
|
customWidth?:boolean;
|
2017-03-20 09:02:25 +00:00
|
|
|
};
|
2017-03-25 01:36:40 +00:00
|
|
|
|
2017-05-13 18:21:22 +00:00
|
|
|
interface Margins {
|
|
|
|
left?:number;
|
|
|
|
right?:number;
|
|
|
|
top?:number;
|
|
|
|
bottom?:number;
|
|
|
|
header?:number;
|
|
|
|
footer?:number;
|
|
|
|
};
|
|
|
|
|
|
|
|
interface DefinedName {
|
|
|
|
Name:string;
|
|
|
|
Ref:string;
|
|
|
|
Sheet?:number;
|
|
|
|
Comment?:string;
|
|
|
|
};
|
|
|
|
|
|
|
|
interface Hyperlink {
|
|
|
|
Target:string;
|
|
|
|
Tooltip?:string;
|
|
|
|
};
|
|
|
|
|
|
|
|
type SSFTable = any;
|
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
|
|
|
*/
|