Skip to content

Glossary: TypeScript Beyond the Basics

typeof (type position)

Also written: typeof

In a type, `typeof x` takes the type of a value. `ReturnType` needs it because it wants a function's type, not the function itself.

Where the book teaches it

Related terms

ReturnTypekeyof