mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
13 lines
248 B
TypeScript
13 lines
248 B
TypeScript
|
// @filename: types.ts
|
||
|
declare module "*.foo" {
|
||
|
export interface OhNo { star: string }
|
||
|
}
|
||
|
|
||
|
// @filename: test.ts
|
||
|
declare module "a.foo" {
|
||
|
export interface OhNo { a: string }
|
||
|
}
|
||
|
import { OhNo } from "b.foo"
|
||
|
declare let ohno: OhNo;
|
||
|
ohno.a // oh no
|