Closed
Description
TypeScript Version: 3.5.2 (it works with 3.4.4). Also tested on 3.6.0-dev.20190622
Search Terms:
Code (not real-life, just a repro)
const actions = ['resizeTo', 'resizeBy'] as const;
for (const action of actions) {
window[action] = (x, y) => {
window[action](x, y);
}
}
Expected behavior:
x
and y
are of type number
(like in 3.4)
Actual behavior:
x
and y
are of type any
Playground Link: (enable noImplicitAny
, but it seems to be on 3.4)
Related Issues: