31 lines
675 B
Plaintext
31 lines
675 B
Plaintext
=== tests/cases/compiler/checkJsdocTypeTagOnExportAssignment7.js ===
|
|
|
|
No type information for this code.=== tests/cases/compiler/a.js ===
|
|
/**
|
|
* @typedef {Object} Foo
|
|
* @property {number} a
|
|
* @property {number} b
|
|
*/
|
|
|
|
const abc = { a: 1, b: 1, c: 1 };
|
|
>abc : { a: number; b: number; c: number; }
|
|
>{ a: 1, b: 1, c: 1 } : { a: number; b: number; c: number; }
|
|
>a : number
|
|
>1 : 1
|
|
>b : number
|
|
>1 : 1
|
|
>c : number
|
|
>1 : 1
|
|
|
|
/** @type {Foo} */
|
|
export default abc;
|
|
>abc : { a: number; b: number; c: number; }
|
|
|
|
=== tests/cases/compiler/b.js ===
|
|
import a from "./a";
|
|
>a : import("tests/cases/compiler/a").Foo
|
|
|
|
a;
|
|
>a : import("tests/cases/compiler/a").Foo
|
|
|