26 lines
477 B
TypeScript
26 lines
477 B
TypeScript
//// [tests/cases/conformance/jsx/tsxPreserveEmit3.tsx] ////
|
|
|
|
//// [file.tsx]
|
|
|
|
declare module JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements {
|
|
[s: string]: any;
|
|
}
|
|
}
|
|
|
|
//// [test.d.ts]
|
|
export var React;
|
|
|
|
//// [react-consumer.tsx]
|
|
// This import should be elided
|
|
import {React} from "./test";
|
|
|
|
|
|
//// [file.jsx]
|
|
//// [react-consumer.jsx]
|
|
define(["require", "exports"], function (require, exports) {
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
});
|