Closed phaseOne closed 2 years ago
xlsx.zahl
exports a default string while the cpexcel
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 and xlsx.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.
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.