swc/crates/swc_ecma_parser/tests/tsc/tsxElementResolution17x.tsx

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 />;