Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork38
TS bugfix, export top-level indexer#19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
`export default` will export like `module.exports["default"] = cptable`
coveralls commentedMar 5, 2020
One of the comments in the original code was: /* note: TS cannot export top-level indexer, hence default workaround */ 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 |
karikera commentedMar 5, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I compiled |
So I had to add
The offending test code was: importcptablefrom'codepage'; This was fixed in the type definition using exportdefaultcptable; Is there a reason to prefer |
karikera commentedMar 5, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@SheetJSDev this module has errors on TS |
Uh oh!
There was an error while loading.Please reload this page.
TS bugfix, export top-level indexer
export default cptable
does not equal withmodule.exports = cptable
, it will export likemodule.exports["default"] = cptable