rvx
Version:
A signal based rendering library
20 lines (19 loc) • 638 B
TypeScript
import type { Attributes, TagNameMap } from "../element-common.js";
import { Content } from "../types.js";
export { Fragment } from "./fragment.js";
type NativeElement = Element;
declare global {
export namespace JSX {
type IntrinsicElements = {
[K in keyof TagNameMap]: Attributes<TagNameMap[K]>;
} & {
[K in string]: Attributes<NativeElement>;
};
interface ElementChildrenAttribute {
children: {};
}
type Element = unknown;
type ElementClass = never;
}
}
export declare function jsx(type: any, props: any, ...children: any[]): Content;