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.
Glossary: TypeScript Beyond the Basics
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.