TypeScript/tests/cases/compiler/allowImportClausesToMergeWithTypes.ts

26 lines
390 B
TypeScript
Raw Normal View History

2017-09-25 22:07:44 +02:00
// @filename: b.ts
export const zzz = 123;
export default zzz;
// @filename: a.ts
export default interface zzz {
x: string;
}
import zzz from "./b";
const x: zzz = { x: "" };
zzz;
export { zzz as default };
// @filename: index.ts
import zzz from "./a";
const x: zzz = { x: "" };
zzz;
import originalZZZ from "./b";
originalZZZ;
const y: originalZZZ = x;