How to specify as the type for a class in JSDoc?

File Scene.js
export default class Scene {
 // ...

File Polygon.js
export default class Polygon {
 constructor ({scene}) {
 // How to explain what scene this specimen of the class Scene?
 // If I write @type {Scene} the editor variable is of type any
 this.scene = scene
 // ...

Is invoked like so
new Polygon({
 scene: new Scene()
June 3rd 19 at 19:37
1 answer
June 3rd 19 at 19:39
I have just written the@type {Object}

Find more questions by tags JavaScript