mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +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
|