mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
380 B
TypeScript
21 lines
380 B
TypeScript
//// [tests/cases/compiler/cjsExportsDuplication.ts] ////
|
|
|
|
//// [file.js]
|
|
exports.foo = 42
|
|
exports.foo = "hello"
|
|
exports.foo = true
|
|
|
|
//// [file2.js]
|
|
exports.foo = 42
|
|
/** @type {string} */
|
|
exports.foo = "hello"
|
|
/** @type {boolean} */
|
|
exports.foo = true
|
|
|
|
|
|
|
|
//// [file.d.ts]
|
|
export declare var foo: "hello" | 42 | true;
|
|
//// [file2.d.ts]
|
|
export declare var foo: string;
|