KeyOf
KeyOf<
T> = keyofT
Defined in: src/types/utilities.ts:44
Creates a union from object keys
Type Parameters
Section titled “Type Parameters”T
Example
Section titled “Example”type Sizes = { sm: 1, md: 2, lg: 3 }type SizeKey = KeyOf<Sizes> // 'sm' | 'md' | 'lg'