TS bugfix, export top-level indexer #19
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "karikera/patch-1"
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?
TS bugfix, export top-level indexer
export default cptable
does not equal withmodule.exports = cptable
, it will export likemodule.exports["default"] = cptable
Coverage remained the same at 97.494% when pulling
3d6bf311b8
on karikera:patch-1 into62fd61e2b7
on SheetJS:master.One of the comments in the original code was:
I assume this was in an older version of typescript. Can you verify the new export works in older versions of TS? I think we need to test back to 2.2
@SheetJSDev
I compiled
index.d.ts
without error in TS@2.2So I had to add
"strictFunctionTypes": true
totypes/tsconfig.json
. To test the type definitions,make tslint
and it shows errors likeThe offending test code was:
This was fixed in the type definition using
Is there a reason to prefer
export = cptable
overexport default
?@SheetJSDev
export default
is not compiled tomodule.exports = cptable
export default cptable
ismodule.exports['default'] = cptable
this module has errors on TS
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Gitea.