mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +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
|