29 lines
455 B
TypeScript
29 lines
455 B
TypeScript
//// [tests/cases/compiler/unusedImports13.ts] ////
|
|
|
|
//// [foo.tsx]
|
|
|
|
import React = require("react");
|
|
|
|
export const FooComponent = <div></div>
|
|
|
|
//// [index.d.ts]
|
|
export = React;
|
|
export as namespace React;
|
|
|
|
declare namespace React {
|
|
function createClass<P, S>(spec);
|
|
}
|
|
declare global {
|
|
namespace JSX {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
//// [foo.jsx]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
var React = require("react");
|
|
exports.FooComponent = <div></div>;
|