19 lines
269 B
TypeScript
19 lines
269 B
TypeScript
|
// @allowJs: true
|
||
|
// @checkJs: true
|
||
|
// @strict: true
|
||
|
// @outDir: out
|
||
|
// @declaration: true
|
||
|
|
||
|
// @filename: main.js
|
||
|
const { K } = require("./mod1");
|
||
|
/** @param {K} k */
|
||
|
function f(k) {
|
||
|
k.values()
|
||
|
}
|
||
|
|
||
|
// @filename: mod1.js
|
||
|
exports.K = class K {
|
||
|
values() {
|
||
|
}
|
||
|
};
|