by mpoc · 3y ago · 0 comments
It would be nice if the behaviour with "as const" was different:
const person = { name: 'John Doe', age: 35 } as const const result = Object.keys(person) // return type is not 'name' | 'age'