mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
14 lines
270 B
TypeScript
14 lines
270 B
TypeScript
//@filename: file.tsx
|
|
//@jsx: preserve
|
|
declare module JSX {
|
|
interface Element { }
|
|
interface ElementAttributesProperty { pr1: any; pr2: any; }
|
|
interface IntrinsicElements { }
|
|
}
|
|
|
|
interface Obj1type {
|
|
new(n: string): {};
|
|
}
|
|
var Obj1: Obj1type;
|
|
<Obj1 x={10} />; // Error
|