-
Notifications
You must be signed in to change notification settings - Fork 0
types are not scoped #11
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
const fnA = () => {
type Window = any;
};
const fnB = () => {
jpex.resolve<Window>();
};this will throw because we find the scoped type Window and then that overwrites the global Window type for the entire file
In most instances it doesn't really matter, as we only care about the name of the type. But for globals it is really unintuitive...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working