-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 Pick PR #59026 (fix(59011): TypeScript generates in...) into releas…
…e-5.5 (#59039) Co-authored-by: Oleksandr T <[email protected]>
- Loading branch information
1 parent
c4108b6
commit a0a3a79
Showing
8 changed files
with
117 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
//// [tests/cases/conformance/jsdoc/importTag18.ts] //// | ||
|
||
//// [a.ts] | ||
export interface Foo {} | ||
|
||
//// [b.js] | ||
/** | ||
* @import { | ||
* Foo | ||
* } from "./a" | ||
*/ | ||
|
||
/** | ||
* @param {Foo} a | ||
*/ | ||
export function foo(a) {} | ||
|
||
|
||
|
||
|
||
//// [a.d.ts] | ||
export interface Foo { | ||
} | ||
//// [b.d.ts] | ||
/** | ||
* @import { | ||
* Foo | ||
* } from "./a" | ||
*/ | ||
/** | ||
* @param {Foo} a | ||
*/ | ||
export function foo(a: Foo): void; | ||
import type { Foo } from "./a"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//// [tests/cases/conformance/jsdoc/importTag18.ts] //// | ||
|
||
=== a.ts === | ||
export interface Foo {} | ||
>Foo : Symbol(Foo, Decl(a.ts, 0, 0)) | ||
|
||
=== b.js === | ||
/** | ||
* @import { | ||
* Foo | ||
* } from "./a" | ||
*/ | ||
|
||
/** | ||
* @param {Foo} a | ||
*/ | ||
export function foo(a) {} | ||
>foo : Symbol(foo, Decl(b.js, 0, 0)) | ||
>a : Symbol(a, Decl(b.js, 9, 20)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
//// [tests/cases/conformance/jsdoc/importTag18.ts] //// | ||
|
||
=== a.ts === | ||
|
||
export interface Foo {} | ||
|
||
=== b.js === | ||
/** | ||
* @import { | ||
* Foo | ||
* } from "./a" | ||
*/ | ||
|
||
/** | ||
* @param {Foo} a | ||
*/ | ||
export function foo(a) {} | ||
>foo : (a: Foo) => void | ||
> : ^ ^^^^^^^^^^^^^^ | ||
>a : Foo | ||
> : ^^^ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// @declaration: true | ||
// @emitDeclarationOnly: true | ||
// @checkJs: true | ||
// @allowJs: true | ||
|
||
// @filename: a.ts | ||
export interface Foo {} | ||
|
||
// @filename: b.js | ||
/** | ||
* @import { | ||
* Foo | ||
* } from "./a" | ||
*/ | ||
|
||
/** | ||
* @param {Foo} a | ||
*/ | ||
export function foo(a) {} |