For the sake of auto-complete, we sometimes do this
class SomeClass{
constructor(){
//For some reason, the constructor is returning a promise that when resolved will return a string
/** @type {Promise<string>}*/ this
}
}
//Somewhere else
let myInstance = new SomeClass()
// myInstance.th As we type 'myInstance.' we really want auto-complete that'll list the properties of a Promise<string>