mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
479 B
TypeScript
24 lines
479 B
TypeScript
//// [tests/cases/conformance/externalModules/typeOnly/ambient.ts] ////
|
|
|
|
//// [a.ts]
|
|
export class A { a!: string }
|
|
|
|
//// [b.ts]
|
|
import type { A } from './a';
|
|
declare class B extends A {}
|
|
declare namespace ns {
|
|
class C extends A {}
|
|
}
|
|
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.A = void 0;
|
|
class A {
|
|
}
|
|
exports.A = A;
|
|
//// [b.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|