@types/react 18.3.13 → 19.0.0

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.
@@ -0,0 +1,44 @@
1
+ import * as React from "./";
2
+ export { Fragment } from "./";
3
+
4
+ export namespace JSX {
5
+ interface Element extends React.JSX.Element {}
6
+ interface ElementClass extends React.JSX.ElementClass {}
7
+ interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
8
+ interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
9
+ type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
10
+ interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
11
+ interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
12
+ interface IntrinsicElements extends React.JSX.IntrinsicElements {}
13
+ }
14
+
15
+ export interface JSXSource {
16
+ /**
17
+ * The source file where the element originates from.
18
+ */
19
+ fileName?: string | undefined;
20
+
21
+ /**
22
+ * The line number where the element was created.
23
+ */
24
+ lineNumber?: number | undefined;
25
+
26
+ /**
27
+ * The column number where the element was created.
28
+ */
29
+ columnNumber?: number | undefined;
30
+ }
31
+
32
+ /**
33
+ * Create a React element.
34
+ *
35
+ * You should not use this function directly. Use JSX and a transpiler instead.
36
+ */
37
+ export function jsxDEV(
38
+ type: React.ElementType,
39
+ props: unknown,
40
+ key: React.Key | undefined,
41
+ isStatic: boolean,
42
+ source?: JSXSource,
43
+ self?: unknown,
44
+ ): React.ReactElement;
@@ -0,0 +1,35 @@
1
+ import * as React from "./";
2
+ export { Fragment } from "./";
3
+
4
+ export namespace JSX {
5
+ interface Element extends React.JSX.Element {}
6
+ interface ElementClass extends React.JSX.ElementClass {}
7
+ interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
8
+ interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
9
+ type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
10
+ interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
11
+ interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
12
+ interface IntrinsicElements extends React.JSX.IntrinsicElements {}
13
+ }
14
+
15
+ /**
16
+ * Create a React element.
17
+ *
18
+ * You should not use this function directly. Use JSX and a transpiler instead.
19
+ */
20
+ export function jsx(
21
+ type: React.ElementType,
22
+ props: unknown,
23
+ key?: React.Key,
24
+ ): React.ReactElement;
25
+
26
+ /**
27
+ * Create a React element.
28
+ *
29
+ * You should not use this function directly. Use JSX and a transpiler instead.
30
+ */
31
+ export function jsxs(
32
+ type: React.ElementType,
33
+ props: unknown,
34
+ key?: React.Key,
35
+ ): React.ReactElement;