Add test for #28468
This commit is contained in:
parent
a2205ad53d
commit
3dfd9c1b9b
14
tests/baselines/reference/jsdocImportTypeResolution.symbols
Normal file
14
tests/baselines/reference/jsdocImportTypeResolution.symbols
Normal file
|
@ -0,0 +1,14 @@
|
|||
=== tests/cases/compiler/module.js ===
|
||||
export class MyClass {
|
||||
>MyClass : Symbol(MyClass, Decl(module.js, 0, 0))
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/usage.js ===
|
||||
/**
|
||||
* @typedef {Object} options
|
||||
* @property {import("./module").MyClass} option
|
||||
*/
|
||||
/** @type {options} */
|
||||
let v;
|
||||
>v : Symbol(v, Decl(usage.js, 5, 3))
|
||||
|
14
tests/baselines/reference/jsdocImportTypeResolution.types
Normal file
14
tests/baselines/reference/jsdocImportTypeResolution.types
Normal file
|
@ -0,0 +1,14 @@
|
|||
=== tests/cases/compiler/module.js ===
|
||||
export class MyClass {
|
||||
>MyClass : MyClass
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/usage.js ===
|
||||
/**
|
||||
* @typedef {Object} options
|
||||
* @property {import("./module").MyClass} option
|
||||
*/
|
||||
/** @type {options} */
|
||||
let v;
|
||||
>v : options
|
||||
|
14
tests/cases/compiler/jsdocImportTypeResolution.ts
Normal file
14
tests/cases/compiler/jsdocImportTypeResolution.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
// @allowJs: true
|
||||
// @noEmit: true
|
||||
// @checkJs: true
|
||||
// @filename: module.js
|
||||
export class MyClass {
|
||||
}
|
||||
|
||||
// @filename: usage.js
|
||||
/**
|
||||
* @typedef {Object} options
|
||||
* @property {import("./module").MyClass} option
|
||||
*/
|
||||
/** @type {options} */
|
||||
let v;
|
Loading…
Reference in a new issue