Remix.run Logo
afavour a day ago

ReturnType is TypeScript, no? You’re using JSDoc to express but it’s a TypeScript type.

culi a day ago | parent | next [-]

As I stated in the article, JSDoc is TypeScript :P

TypeScript utility types are available in JSDoc. You can pretty much copy-paste any typescript Type/Interface into JSDoc

Mogzol a day ago | parent | prev [-]

Isn't that the whole point of the article? For all intents and purposes, JSDoc IS TypeScript