Add types
to subpath exports in package.json
#2793
No reviewers
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#2793
Loading…
Reference in New Issue
No description provided.
Delete Branch "patch-2"
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 a project's
tsconfig.json
is configured to use ECMAScript modules and hasstrict
ornoImplicitAny
set totrue
, TypeScript complains about being unable to findxlsx
's declaration file:tsconfig.json
The change in this PR should resolve the issue.
xlsx.zahl
exports a default string while thecpexcel
scripts export the same shape as the main codepage library https://github.com/SheetJS/js-codepage/blob/master/types/index.d.ts . For the purposes of this patch, just include the types for the root export andxlsx.mjs
.4dd092a cherry-picks the first two changes.
Is there a simple project template to verify correctness?
Tested in a simple svelte+TS app and the types seem to work using the changes from
1491302
.Pull request closed