mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
15 lines
274 B
TypeScript
15 lines
274 B
TypeScript
// @filename: types.ts
|
|
declare module "*.foo" {
|
|
let everywhere: string;
|
|
}
|
|
|
|
|
|
// @filename: testA.ts
|
|
import { everywhere, onlyInA } from "a.foo";
|
|
declare module "a.foo" {
|
|
let onlyInA: number;
|
|
}
|
|
|
|
// @filename: testB.ts
|
|
import { everywhere, onlyInA } from "b.foo"; // Error
|