typeof is used to differentiate between the different types in TypeScript . By the use of typeof we can differentiate between number, string, symbol, Boolean, etc. typeof can be used with any type in TypeScript, by the use of it we can re-use the code by passing any parameter type.
Read moreWhat type is {} TypeScript?
TypeScript has another type called empty type denoted by {} , which is quite similar to the object type.
Read more