Conflicts: src/compiler/checker.ts src/compiler/emitter.ts src/compiler/types.ts tests/baselines/reference/APISample_compile.js tests/baselines/reference/APISample_linter.js tests/baselines/reference/APISample_transform.js tests/baselines/reference/APISample_watcher.js tests/baselines/reference/es5ExportDefaultClassDeclaration2.js tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.js tests/baselines/reference/es6ExportAllInEs5.js tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.js
55 lines
1.6 KiB
TypeScript
55 lines
1.6 KiB
TypeScript
//// [tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.ts] ////
|
|
|
|
//// [server.ts]
|
|
|
|
class a { }
|
|
export default a;
|
|
|
|
//// [client.ts]
|
|
import defaultBinding1, { } from "server";
|
|
export var x1 = new defaultBinding1();
|
|
import defaultBinding2, { a } from "server";
|
|
export var x2 = new defaultBinding2();
|
|
import defaultBinding3, { a as b } from "server";
|
|
export var x3 = new defaultBinding3();
|
|
import defaultBinding4, { x, a as y } from "server";
|
|
export var x4 = new defaultBinding4();
|
|
import defaultBinding5, { x as z, } from "server";
|
|
export var x5 = new defaultBinding5();
|
|
import defaultBinding6, { m, } from "server";
|
|
export var x6 = new defaultBinding6();
|
|
|
|
//// [server.js]
|
|
var a = (function () {
|
|
function a() {
|
|
}
|
|
return a;
|
|
})();
|
|
exports.default = a;
|
|
//// [client.js]
|
|
var server_1 = require("server");
|
|
exports.x1 = new server_1.default();
|
|
var server_2 = require("server");
|
|
exports.x2 = new server_2.default();
|
|
var server_3 = require("server");
|
|
exports.x3 = new server_3.default();
|
|
var server_4 = require("server");
|
|
exports.x4 = new server_4.default();
|
|
var server_5 = require("server");
|
|
exports.x5 = new server_5.default();
|
|
var server_6 = require("server");
|
|
exports.x6 = new server_6.default();
|
|
|
|
|
|
//// [server.d.ts]
|
|
declare class a {
|
|
}
|
|
export default a;
|
|
//// [client.d.ts]
|
|
import defaultBinding1 from "server";
|
|
export declare var x1: defaultBinding1;
|
|
export declare var x2: defaultBinding1;
|
|
export declare var x3: defaultBinding1;
|
|
export declare var x4: defaultBinding1;
|
|
export declare var x5: defaultBinding1;
|
|
export declare var x6: defaultBinding1;
|