Glossary: TypeScript Beyond the Basics
keyof
Also written: keyof T, keyof typeof
An operator that gives the union of a type's property names as literal types. For `Product`, `keyof Product` is `"sku" | "name" | ...`.
Glossary: TypeScript Beyond the Basics
Also written: keyof T, keyof typeof
An operator that gives the union of a type's property names as literal types. For `Product`, `keyof Product` is `"sku" | "name" | ...`.