mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
496 B
TypeScript
25 lines
496 B
TypeScript
//// [tests/cases/conformance/externalModules/typeOnly/importClause_default.ts] ////
|
|
|
|
//// [a.ts]
|
|
export default class A { a!: string }
|
|
|
|
//// [b.ts]
|
|
import type A from './a';
|
|
new A();
|
|
let a: A = { a: '' };
|
|
let b = { A };
|
|
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
class A {
|
|
}
|
|
exports.default = A;
|
|
//// [b.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
new A();
|
|
let a = { a: '' };
|
|
let b = { A };
|