Missing TypeScript types for files and Directory in WorkBook #3317
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#3317
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?
When using the
bookFiles: true
option, the returned Workbook object contains a files property. However, this property is not defined in the WorkBook TypeScript interface. It also contains a Directory property, but its type is missing too.The current behavior of
bookFiles
is filetype-dependent. For XLSX and other ZIP-based formats, thekeys
property is a list of entry names (string[]
) and thefiles
property is an object whose keys are path names (the names from thekeys
array) and whose values are entry objects from thecfb
project Once we unify the interpretation across formats, we'll add type definitions.Do not rely on
Directory
, as it is an internal structure that will eventually be removed from the workbook object.