Object.keys must use keyof of generic type <T extends object>, not just <T>
Boeny opened this issue · 2 comments
Boeny commented
Despite the comment #12253 (comment)
I would proceed the discussion with just a little suggestion:
the Object.keys function should look like:
keys<T extends {}>(o: T): Array<keyof T>;
j-oliveras commented
RyanCavanaugh commented
Thanks @j-oliveras - much appreciated