You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Search Terms:
variable / constant declarations on exports ignored using commonjs, amd, umd, System module on ES2015, ES2016, ES2017, ES2018, ES2019, ES2020 Expected behavior:
Variable and Constant declarations (block/global) should be declared on exports (it should behave same as function declarations)
The text was updated successfully, but these errors were encountered:
igorzg
changed the title
Variable and Constant declarations (block/global) should be declared on common js exports same as functions
Variable and Constant declarations (block/global) should be declared on common js/umd/amd/System exports same as functions
Nov 1, 2020
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 4.x, 3.x, 2.x
Search Terms:
variable / constant declarations on exports ignored using commonjs, amd, umd, System module on ES2015, ES2016, ES2017, ES2018, ES2019, ES2020
Expected behavior:
Variable and Constant declarations (block/global) should be declared on exports (it should behave same as function declarations)
Actual behavior:
Related Issues:
No
Code
typescript ignores var, let, const declarations on export which should not be the case.
Output
Compiler Options
Playground Link: Provided
The text was updated successfully, but these errors were encountered: