@types/react 18.2.58 → 18.2.59

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.
react/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for react (https://react.dev/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 23 Feb 2024 08:07:48 GMT
11
+ * Last updated: Mon, 26 Feb 2024 19:06:50 GMT
12
12
  * Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler), [csstype](https://npmjs.com/package/csstype)
13
13
 
14
14
  # Credits
@@ -1,4 +1,5 @@
1
1
  import * as React from "./";
2
+ export { Fragment } from "./";
2
3
 
3
4
  export namespace JSX {
4
5
  type ElementType = React.JSX.ElementType;
@@ -11,3 +12,34 @@ export namespace JSX {
11
12
  interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
12
13
  interface IntrinsicElements extends React.JSX.IntrinsicElements {}
13
14
  }
15
+
16
+ export interface JSXSource {
17
+ /**
18
+ * The source file where the element originates from.
19
+ */
20
+ fileName?: string | undefined;
21
+
22
+ /**
23
+ * The line number where the element was created.
24
+ */
25
+ lineNumber?: number | undefined;
26
+
27
+ /**
28
+ * The column number where the element was created.
29
+ */
30
+ columnNumber?: number | undefined;
31
+ }
32
+
33
+ /**
34
+ * Create a React element.
35
+ *
36
+ * You should not use this function directly. Use JSX and a transpiler instead.
37
+ */
38
+ export function jsxDEV(
39
+ type: React.ElementType,
40
+ props: unknown,
41
+ key: React.Key | undefined,
42
+ isStatic: boolean,
43
+ source?: JSXSource,
44
+ self?: unknown,
45
+ ): React.ReactElement;
react/jsx-runtime.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as React from "./";
2
+ export { Fragment } from "./";
2
3
 
3
4
  export namespace JSX {
4
5
  type ElementType = React.JSX.ElementType;
@@ -11,3 +12,25 @@ export namespace JSX {
11
12
  interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
12
13
  interface IntrinsicElements extends React.JSX.IntrinsicElements {}
13
14
  }
15
+
16
+ /**
17
+ * Create a React element.
18
+ *
19
+ * You should not use this function directly. Use JSX and a transpiler instead.
20
+ */
21
+ export function jsx(
22
+ type: React.ElementType,
23
+ props: unknown,
24
+ key?: React.Key,
25
+ ): React.ReactElement;
26
+
27
+ /**
28
+ * Create a React element.
29
+ *
30
+ * You should not use this function directly. Use JSX and a transpiler instead.
31
+ */
32
+ export function jsxs(
33
+ type: React.ElementType,
34
+ props: unknown,
35
+ key?: React.Key,
36
+ ): React.ReactElement;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.2.58",
3
+ "version": "18.2.59",
4
4
  "description": "TypeScript definitions for react",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -201,6 +201,6 @@
201
201
  "@types/scheduler": "*",
202
202
  "csstype": "^3.0.2"
203
203
  },
204
- "typesPublisherContentHash": "a179697ac06a0f559d1633405ad04e6aad961a4bfc327575f032c02e791e0e05",
204
+ "typesPublisherContentHash": "39d6b6d18b9189bf6237c516c1e05ed3eb94f5381445cb2dc25518e9498f816f",
205
205
  "typeScriptVersion": "4.6"
206
206
  }
@@ -1,4 +1,5 @@
1
1
  import * as React from "./";
2
+ export { Fragment } from "./";
2
3
 
3
4
  export namespace JSX {
4
5
  interface Element extends React.JSX.Element {}
@@ -10,3 +11,34 @@ export namespace JSX {
10
11
  interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
11
12
  interface IntrinsicElements extends React.JSX.IntrinsicElements {}
12
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;
@@ -1,4 +1,5 @@
1
1
  import * as React from "./";
2
+ export { Fragment } from "./";
2
3
 
3
4
  export namespace JSX {
4
5
  interface Element extends React.JSX.Element {}
@@ -10,3 +11,25 @@ export namespace JSX {
10
11
  interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
11
12
  interface IntrinsicElements extends React.JSX.IntrinsicElements {}
12
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;