mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
13 lines
230 B
TypeScript
13 lines
230 B
TypeScript
//@filename: file.tsx
|
|
//@jsx: preserve
|
|
declare module JSX {
|
|
interface Element { }
|
|
interface ElementAttributesProperty { pr1: any; pr2: any; }
|
|
}
|
|
|
|
interface Obj1 {
|
|
new(n: string): any;
|
|
}
|
|
var obj1: Obj1;
|
|
<obj1 x={10} />; // Error
|