Is it possible in TypeScript to assert that a const object literal is made in such a way where each key equals its value?
In other words:
// Good
const testIds: KeyEqualsValue = {
foo: 'foo'
} as const
// Bad
const testIds: KeyEqualsValue = {
foo: 'bar' // Error
} as const