mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
713 B
TypeScript
31 lines
713 B
TypeScript
//// [tests/cases/conformance/externalModules/typeOnly/implementsClause.ts] ////
|
|
|
|
//// [types.ts]
|
|
export interface Component {}
|
|
|
|
//// [ns.ts]
|
|
import type * as types from './types';
|
|
export { types };
|
|
|
|
//// [index.ts]
|
|
import type * as types from './types';
|
|
import * as nestedNamespace from './ns';
|
|
|
|
class C implements types.Component {}
|
|
class D implements nestedNamespace.types.Component {}
|
|
|
|
|
|
//// [types.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
//// [ns.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
//// [index.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
class C {
|
|
}
|
|
class D {
|
|
}
|