const EMPLOYEE = {
KEY: 'key',
NAME: 'name',
}
export interface Employee {
[EMPLOYEE.KEY]: string;
[EMPLOYEE.NAME]: string;
}
And I have an error: A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type.
Can I use above code? Thank you!