Return keys on a type as an array of strings
Available keys
type Person = { firstName: string; lastName: string; age: number;}const keys = typeKeys<Person>();console.log(keys); // Output: ["firstName", "lastName", "age"] Copy
type Person = { firstName: string; lastName: string; age: number;}const keys = typeKeys<Person>();console.log(keys); // Output: ["firstName", "lastName", "age"]
Return keys on a type as an array of strings