// @filename: first.js
class C {
s() { }
}
module.exports.C = C
// @filename: test.js
/** @typedef {import('./first').C} C */
/** @param {C} c */
function demo(c) {
c.s
}
Expected: no error and c.s: () => {}.
Actual: Property 's' does not exist on 'typeof C'.