@ztimson/utils / types
tyoeKeys<T>(): keyof T[]
T
Return keys on a type as an array of strings
• T extends object
object
keyof T[]
Available keys
type Person = { firstName: string; lastName: string; age: number; } const keys = typeKeys<Person>(); console.log(keys); // Output: ["firstName", "lastName", "age"]
src/types.ts:18
Deleting the wiki page "types" cannot be undone. Continue?