Declare type of imported objects using JSDoc

Viewed 11

I'm trying to declare types for imported objects using JSDoc, but can't get it to work. Basically code looks like this:

import * as Components from "./";

How do I declare the type for Components using JSDoc. Simply adding something above like

/** @type {*} */

does not seem to work. Can't find an answer to this anywhere.

0 Answers
Related