* 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
38 lines
1,021 B
TypeScript
38 lines
1,021 B
TypeScript
//// [tests/cases/compiler/importDeclarationUsedAsTypeQuery.ts] ////
|
|
|
|
//// [importDeclarationUsedAsTypeQuery_require.ts]
|
|
export class B {
|
|
id: number;
|
|
}
|
|
|
|
//// [importDeclarationUsedAsTypeQuery_1.ts]
|
|
///<reference path='importDeclarationUsedAsTypeQuery_require.ts'/>
|
|
import a = require('./importDeclarationUsedAsTypeQuery_require');
|
|
export var x: typeof a;
|
|
|
|
|
|
//// [importDeclarationUsedAsTypeQuery_require.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
exports.B = void 0;
|
|
var B = /** @class */ (function () {
|
|
function B() {
|
|
}
|
|
return B;
|
|
}());
|
|
exports.B = B;
|
|
//// [importDeclarationUsedAsTypeQuery_1.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
exports.x = void 0;
|
|
|
|
|
|
//// [importDeclarationUsedAsTypeQuery_require.d.ts]
|
|
export declare class B {
|
|
id: number;
|
|
}
|
|
//// [importDeclarationUsedAsTypeQuery_1.d.ts]
|
|
/// <reference path="importDeclarationUsedAsTypeQuery_require.d.ts" />
|
|
import a = require('./importDeclarationUsedAsTypeQuery_require');
|
|
export declare var x: typeof a;
|