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 cptabledoes not equal withmodule.exports = cptable, it will export likemodule.exports["default"] = cptableCoverage remained the same at 97.494% when pulling
3d6bf311b8on karikera:patch-1 into62fd61e2b7on 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.tswithout error in TS@2.2So I had to add
"strictFunctionTypes": truetotypes/tsconfig.json. To test the type definitions,make tslintand it shows errors likeThe offending test code was:
This was fixed in the type definition using
Is there a reason to prefer
export = cptableoverexport default?@SheetJSDev
export defaultis not compiled tomodule.exports = cptableexport default cptableismodule.exports['default'] = cptablethis 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.