mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
12 lines
165 B
TypeScript
12 lines
165 B
TypeScript
//@filename: file.tsx
|
|
//@jsx: preserve
|
|
declare module JSX {
|
|
interface Element { }
|
|
}
|
|
|
|
interface Obj1 {
|
|
new(n: string): {};
|
|
}
|
|
var obj1: Obj1;
|
|
<obj1 x={10} />; // OK
|