Closed
Description
Probably this is an issue of dynamic typing, didn't find exact here in the issues (probably you will point to).
Is it possible to do typing and achieve types flow of such thing:
function getProp(prop: string, obj: any) {
return obj[prop]
}
let obj: { id: number } = { id: 1 }
getProp('id', obj). // there should flow number type