TypeScript/tests/cases/conformance/jsx/tsxElementResolution17.tsx

28 lines
448 B
TypeScript
Raw Normal View History

2015-06-18 23:03:43 +02:00
//@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 />;