Closed
Description
From the webpack user test:
// @filename: mod1.js
class K {
values() {
}
}
exports.K = K;
// @filename: test.js
const { K } = require("./mod1");
/** @type {K} */
let k;
k.values();
Expected behavior:
No error, and k: K
Actual behavior:
Error "'values' not found on 'typeof K'." and k: typeof K
.
Note: doesn't happen with exports.K = class { values() {} }