Keyof Type Operator | TypeScript
The keyof operator is used to extract the keys of an object type and use them as a type.
The keyof takes an object as input and returns a union type of its keys.
Let's understand it with an example.
interface Person {
name: string;
age: number;
...
ajay020.hashnode.dev2 min read