mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
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) => {}
|