mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
345 B
Plaintext
19 lines
345 B
Plaintext
//// [tests/cases/compiler/exportDefaultWithJSDoc2.ts] ////
|
|
|
|
=== a.js ===
|
|
|
|
/**
|
|
* A number, or a string containing a number.
|
|
* @typedef {(number|string)} NumberLike
|
|
*/
|
|
|
|
export default /** @type {NumberLike[]} */([ ]);
|
|
|
|
=== b.ts ===
|
|
import A from './a'
|
|
>A : Symbol(A, Decl(b.ts, 0, 6))
|
|
|
|
A[0]
|
|
>A : Symbol(A, Decl(b.ts, 0, 6))
|
|
|