abetaev opened this issue 4 years ago ยท 2 comments
why instead
TypeScript/lib/lib.es5.d.ts
Line 261 in d8e830d
keys<T = Record<string, unknown>>(o: T): (keyof T)[];
? are there any issues with that?
If by "issues" you mean "GitHub issues", yes there are plenty: #13254, #26901, #28284, #28899, #30228, #30314, #30749, #31087, #32321, #34498, #35145, #37495, #44706, etc. ๐
See https://stackoverflow.com/questions/55012174/why-doesnt-object-keys-return-a-keyof-type-in-typescript
my bad, didn't look through closed ones. thanks for the explanation.