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...
this will throw because we find the scoped type
Windowand then that overwrites the globalWindowtype for the entire fileIn most instances it doesn't really matter, as we only care about the name of the type. But for globals it is really unintuitive...