# Conflicts: # tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js # tests/baselines/reference/tsc/declarationEmit/initial-build/when-pkg-references-sibling-package-through-indirect-symlink.js
48 lines
1.3 KiB
TypeScript
48 lines
1.3 KiB
TypeScript
//// [tests/cases/compiler/moduleAugmentationEnumClassMergeOfReexportIsError.ts] ////
|
|
|
|
//// [file.ts]
|
|
export class Foo {
|
|
member: string;
|
|
}
|
|
//// [reexport.ts]
|
|
export * from "./file";
|
|
//// [augment.ts]
|
|
import * as ns from "./reexport";
|
|
|
|
declare module "./reexport" {
|
|
export enum Foo {
|
|
A, B, C
|
|
}
|
|
}
|
|
|
|
declare const f: ns.Foo; //is this the enum or the class? should be an error.
|
|
|
|
|
|
//// [file.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
exports.Foo = void 0;
|
|
var Foo = /** @class */ (function () {
|
|
function Foo() {
|
|
}
|
|
return Foo;
|
|
}());
|
|
exports.Foo = Foo;
|
|
//// [reexport.js]
|
|
"use strict";
|
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
}) : (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
o[k2] = m[k];
|
|
}));
|
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
};
|
|
exports.__esModule = true;
|
|
__exportStar(require("./file"), exports);
|
|
//// [augment.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|