mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
22 lines
317 B
TypeScript
22 lines
317 B
TypeScript
//@jsx: react
|
|
//@module: amd
|
|
|
|
//@filename: react.d.ts
|
|
declare module "react" {
|
|
|
|
}
|
|
|
|
//@filename: file1.tsx
|
|
declare module JSX {
|
|
interface Element { }
|
|
}
|
|
export class MyClass { }
|
|
|
|
//@filename: file2.tsx
|
|
|
|
// Should not elide React import
|
|
import * as React from 'react';
|
|
import {MyClass} from './file1';
|
|
|
|
<MyClass />;
|