Compiling typescript is throwing exceptions #442

Closed
opened 2016-07-18 09:58:04 +00:00 by OzgurDogan · 2 comments
OzgurDogan commented 2016-07-18 09:58:04 +00:00 (Migrated from github.com)

jspm_packages\github\SheetJS\js-xlsx@0.8.0\misc\xl.d.ts(31,3): error TS2411: Property ''!range'' of type 'CellRange' is not assignable to string index type 'Cell'.

jspm_packages\github\SheetJS\js-xlsx@0.8.0\misc\xl.d.ts(31,3): error TS2411: Property ''!ref'' of type 'string' is not assignable to string index type 'Cell'.

jspm_packages\github\SheetJS\js-xlsx@0.8.0\misc\xl.d.ts(31,3): error TS2411: Property ''!range'' of type 'CellRange' is not assignable to string index type 'Cell'. jspm_packages\github\SheetJS\js-xlsx@0.8.0\misc\xl.d.ts(31,3): error TS2411: Property ''!ref'' of type 'string' is not assignable to string index type 'Cell'.
johnjuuljensen commented 2016-10-24 20:33:46 +00:00 (Migrated from github.com)

In TS 2.0 the fix seems to be:
[key: string]: Cell | string | CellRange;

In TS 2.0 the fix seems to be: [key: string]: Cell | string | CellRange;
SheetJSDev commented 2017-03-12 23:55:13 +00:00 (Migrated from github.com)

We will be removing the old typescript definitions files. Type metadata is included as flow comments.

We will be removing the old typescript definitions files. Type metadata is included as flow comments.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#442
No description provided.