Closed Nodonisko closed 2 years ago
D.keys type is incorrect:
D.keys
const keys = D.keys({ 1: 'ahoj', 2: 'ahoj2' }); console.log(keys);
This will print [ '1', '2' ] but type for keys is readonly (1 | 2)[] which is wrong because it shouldn't be numbers but strings: readonly ('1' | '2')[]
[ '1', '2' ]
keys
readonly (1 | 2)[]
readonly ('1' | '2')[]
It's probably related to this https://github.com/microsoft/TypeScript/issues/39543
D.keys
type is incorrect:This will print
[ '1', '2' ]
but type forkeys
isreadonly (1 | 2)[]
which is wrong because it shouldn't be numbers but strings:readonly ('1' | '2')[]