@react5/dom-jsx 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/jsx-runtime.d.ts +4 -23
- package/package.json +1 -1
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -29,32 +29,13 @@ export declare function createRef<T>(): {
|
|
|
29
29
|
};
|
|
30
30
|
export declare namespace JSX {
|
|
31
31
|
type Element = Node;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
type IntrinsicElements = {
|
|
33
|
+
[K in keyof HTMLElementTagNameMap]: ElementProps<HTMLElementTagNameMap[K]>;
|
|
34
|
+
} & {
|
|
35
35
|
form: ElementProps<HTMLFormElement> & {
|
|
36
36
|
onSubmit?: DOMEventHandler<HTMLFormElement, SubmitEvent>;
|
|
37
37
|
};
|
|
38
|
-
|
|
39
|
-
input: ElementProps<HTMLInputElement>;
|
|
40
|
-
textarea: ElementProps<HTMLTextAreaElement>;
|
|
41
|
-
select: ElementProps<HTMLSelectElement>;
|
|
42
|
-
option: ElementProps<HTMLOptionElement>;
|
|
43
|
-
button: ElementProps<HTMLButtonElement>;
|
|
44
|
-
a: ElementProps<HTMLAnchorElement>;
|
|
45
|
-
h1: ElementProps<HTMLHeadingElement>;
|
|
46
|
-
h2: ElementProps<HTMLHeadingElement>;
|
|
47
|
-
h3: ElementProps<HTMLHeadingElement>;
|
|
48
|
-
p: ElementProps<HTMLParagraphElement>;
|
|
49
|
-
ul: ElementProps<HTMLUListElement>;
|
|
50
|
-
ol: ElementProps<HTMLOListElement>;
|
|
51
|
-
li: ElementProps<HTMLLIElement>;
|
|
52
|
-
section: ElementProps<HTMLElement>;
|
|
53
|
-
article: ElementProps<HTMLElement>;
|
|
54
|
-
header: ElementProps<HTMLElement>;
|
|
55
|
-
footer: ElementProps<HTMLElement>;
|
|
56
|
-
main: ElementProps<HTMLElement>;
|
|
57
|
-
}
|
|
38
|
+
};
|
|
58
39
|
}
|
|
59
40
|
export declare function jsx(tag: string | ((props: any) => Node), props: Props | null, _key?: string | number): Node;
|
|
60
41
|
export declare const jsxs: typeof jsx;
|