Merge pull request #28473 from ajafff/test-jsdoc-importtype-resolution
Add test for #28468
This commit is contained in:
commit
63939d16e0
3 changed files with 42 additions and 0 deletions
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