mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
32 lines
512 B
TypeScript
32 lines
512 B
TypeScript
// @jsx: preserve
|
|
|
|
declare namespace JSX {
|
|
interface Element { }
|
|
interface ElementClass {
|
|
render: any;
|
|
}
|
|
interface IntrinsicAttributes {
|
|
key: string | number
|
|
}
|
|
interface IntrinsicClassAttributes<T> {
|
|
ref: T
|
|
}
|
|
interface IntrinsicElements {
|
|
div: {
|
|
text?: string;
|
|
width?: number;
|
|
}
|
|
|
|
span: any;
|
|
}
|
|
}
|
|
|
|
interface I {
|
|
new(n: string): {
|
|
x: number
|
|
render(): void
|
|
}
|
|
}
|
|
var E: I;
|
|
<E x={10} />
|