swc/crates/swc_ecma_parser/tests/tsc/tsxElementResolution19.tsx
2022-02-04 17:08:38 +09:00

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 />;