DenseSheet Type annotation #3195
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#3195
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?
The type annotation of !data field should be
(CellObject | undefined)[][]
, as blank cell is read as undefined if I got it right.I am using version 0.20.3
Since the outer array can have holes, the type really should be
For example, consider a CSV with a blank row:
The result is an array that looks like:
Based on a simple test on typescriptlang.org, typecheck fails with
(object|undefined)[][]
but passes with((object|undefined)[]|undefined)[]
If you agree with the analysis, we'll accept a PR that adds a new
DenseSheetData
type with the correct annotation.Sure, I'll make a PR
yf-yang referenced this issue2024-09-05 02:47:44 +00:00
Closed by
6912bdb2d4