mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 06:05:02 +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 />;
|