need updating definition for Typescript #711
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#711
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I tried to write a demo with typescript and webpack by learning the code at
http://sheetjs.com/demos/writexlsx.html
.I wrote the code like this:
The code runs well and I can download xlsx as well.
Here comes the question:
But
awesome-typescript-loader
told meTS2339: Property 'SSF' does not exist on type 'typeof "./node_modules/xlsx/types/index"'
Thanks for sheetjs and this great node module.
You are correct, the definition for SSF is missing. We'll accept a pull request that just declares SSF as any. The definition file is
types/index.d.ts
and a line likeshould appease typescript.
Note: that function was brought into the library as
XLSX.utils.aoa_to_sheet
: https://github.com/SheetJS/js-xlsx/#array-of-arrays-input and you should be using it instead of the external function.