mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +03:00
b887b30092
**Description:** This is required for https://github.com/swc-project/swc/pull/6981 and https://github.com/swc-project/swc/pull/6950
22 lines
402 B
TypeScript
22 lines
402 B
TypeScript
// @module: esnext
|
|
// @outDir: dist
|
|
// @declaration: true
|
|
// @emitDeclarationOnly: true
|
|
// @strictNullChecks: true
|
|
|
|
// @Filename: a.ts
|
|
export interface Foo {}
|
|
|
|
// @Filename: b.ts
|
|
import * as a from "./a";
|
|
declare global {
|
|
namespace teams {
|
|
export namespace calling {
|
|
export import Foo = a.Foo;
|
|
}
|
|
}
|
|
}
|
|
|
|
// @Filename: c.ts
|
|
type Foo = teams.calling.Foo;
|
|
export const bar = (p?: Foo) => {} |