16 lines
231 B
TypeScript
16 lines
231 B
TypeScript
|
// @noEmit: true
|
||
|
// @allowJs: true
|
||
|
// @checkJs: true
|
||
|
// @Filename: mod1.js
|
||
|
class C {
|
||
|
s() { }
|
||
|
}
|
||
|
module.exports.C = C
|
||
|
|
||
|
// @Filename: test.js
|
||
|
/** @typedef {import('./mod1').C} X */
|
||
|
/** @param {X} c */
|
||
|
function demo(c) {
|
||
|
c.s
|
||
|
}
|