TypeScript/tests/baselines/reference/importShouldNotBeElidedInDeclarationEmit.js
Wesley Wigham c6c2c4c8d5
Hoist initial assignment to exported names in cjs to they are not blocked by bindings made by __exportStar (#37093)
* Hoist initial assignment to exported names in cjs to they are not blocked by bindings made by __exportStar

* Copy hoisted identifiers so they do not create sourcemaps

* Accept updated baselines
2020-02-28 13:25:28 -08:00

26 lines
519 B
TypeScript

//// [tests/cases/compiler/importShouldNotBeElidedInDeclarationEmit.ts] ////
//// [umd.d.ts]
export as namespace UMD;
export type Thing = {
a: number;
}
export declare function makeThing(): Thing;
//// [index.ts]
import { makeThing } from "umd";
export const thing = makeThing();
//// [index.js]
"use strict";
exports.__esModule = true;
exports.thing = void 0;
var umd_1 = require("umd");
exports.thing = umd_1.makeThing();
//// [index.d.ts]
export declare const thing: import("umd").Thing;