mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
370 B
TypeScript
29 lines
370 B
TypeScript
//// [tests/cases/conformance/jsdoc/importDeferJsdoc.ts] ////
|
|
|
|
//// [types.ts]
|
|
export type X = 1;
|
|
|
|
//// [foo.js]
|
|
/**
|
|
* @import defer * as ns from "./types"
|
|
*/
|
|
|
|
/**
|
|
* @type { ns.X }
|
|
*/
|
|
let a = 2;
|
|
|
|
|
|
|
|
|
|
//// [types.d.ts]
|
|
export type X = 1;
|
|
//// [foo.d.ts]
|
|
/**
|
|
* @import defer * as ns from "./types"
|
|
*/
|
|
/**
|
|
* @type { ns.X }
|
|
*/
|
|
declare let a: ns.X;
|