mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
23 lines
306 B
TypeScript
23 lines
306 B
TypeScript
//@filename: file.tsx
|
|
//@jsx: preserve
|
|
declare module JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements { }
|
|
}
|
|
|
|
module my {
|
|
export var div: any;
|
|
}
|
|
// OK
|
|
<my.div n='x' />;
|
|
// Error
|
|
<my.other />;
|
|
|
|
module q {
|
|
import mine = my;
|
|
// OK
|
|
<mine.div n='x' />;
|
|
// Error
|
|
<mine.non />;
|
|
}
|