24 lines
647 B
TypeScript
24 lines
647 B
TypeScript
import { Group, View } from "../ui/view";
|
|
import { ClassType } from "./types";
|
|
export declare namespace jsx {
|
|
function createElement<T extends View>(constructor: ClassType<T>, config: Partial<T> | null, ...children: any[]): any[] | T;
|
|
class Fragment extends Group {
|
|
}
|
|
}
|
|
declare global {
|
|
namespace JSX {
|
|
interface Element extends View {
|
|
}
|
|
interface ElementClass extends View {
|
|
}
|
|
interface ElementAttributesProperty {
|
|
props: {};
|
|
}
|
|
interface ElementChildrenAttribute {
|
|
innerElement: any;
|
|
}
|
|
interface IntrinsicElements {
|
|
}
|
|
}
|
|
}
|