Is there any way to create an object based on an interface which use the same keys and values?
For example. I have following interface:
interface Person {
name: string;
age: number;
}
and I would like to generate an object which looks like this:
const personFieldNames = {
name: "name",
age: "age",
};