Title says it all - why doesn't
Object.keys(x) in TypeScript return the type
Array<keyof typeof x>? That's what
Object.keys does, so it seems like an obvious oversight on the part of the TypeScript definition file authors to not make the return type simply be
Should I log a bug on their GitHub repo, or just go ahead and send a PR to fix it for them?