Closed
Description
Search Terms
Awaited, ReturnType, typeof
Problem
I often have types that rely on the implementation, i.e.:
export type Product = Awaited<ReturnType<typeof getProduct>>;
Currently, the documentation generated for such type is:
Product: Awaited<ReturnType<typeof getProduct>>
It's not instantly useful to the users.
Suggested Solution
Expand the type to the extent that the TypeScript language server does by default. In this case, it shows an object – all aliases are squashed.