ReturnType is TypeScript, no? You’re using JSDoc to express but it’s a TypeScript type.
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
Isn't that the whole point of the article? For all intents and purposes, JSDoc IS TypeScript
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