Book Your Free Call
Tim Mouskhelichvili • March 17, 2022 • 3 minutes to read
The keyof operator is one of the two type operators (the other one is the typeof operator) offered by TypeScript to facilitate type management. The keyof operator is used to extract keys from a specific type into a union [...]
Tim Mouskhelichvili • March 7, 2022 • 2 minutes to read
Summary TypeScript just like JavaScript has a special typeof operator. In TypeScript, the typeof operator is used to refer to the type of a variable in a type context. const v = 'This is a string'; const data: typeof [...]