mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
28 lines
421 B
TypeScript
28 lines
421 B
TypeScript
//@jsx: preserve
|
|
//@module: amd
|
|
|
|
//@filename: file.tsx
|
|
declare module JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements { }
|
|
}
|
|
|
|
declare module 'elements1' {
|
|
class MyElement {
|
|
|
|
}
|
|
}
|
|
|
|
declare module 'elements2' {
|
|
class MyElement {
|
|
|
|
}
|
|
}
|
|
|
|
//@filename: consumer.tsx
|
|
///<reference path="file.tsx" />
|
|
// Should keep s1 and elide s2
|
|
import s1 = require('elements1');
|
|
import s2 = require('elements2');
|
|
<s1.MyElement />;
|