Assignments to global objects in Javascript should be global declarations #22446
Labels
Bug
A bug in TypeScript
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
Expected behavior:
No error, and x, y and z are visible globally.
Actual behavior:
Errors:
Ideally,
global
should only be visible when targetting node andwindow
should only be visible when targetting the browser. It's not a requirement, though.The text was updated successfully, but these errors were encountered: