How to import Class type definitions in .js file using JSDocs from a type declaration file?

Viewed 211

See below screenshot. I'm trying to get IDE autocompletion/type-checking goodness in my JS files by defining my TS type declarations in another file, and importing them. While I've been able to figure this out using simple variables and functions, I am unable to do this with a class definition.

I feel like I am missing something obvious.

example

0 Answers
Related