@types/react 15.7.29 → 15.7.31

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 v15.7/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/v15.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 15 Jan 2024 09:07:05 GMT
11
+ * Last updated: Wed, 19 Mar 2025 15:02:26 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
react v15.7/index.d.ts CHANGED
@@ -2729,6 +2729,14 @@ declare namespace React {
2729
2729
  * @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
2730
2730
  */
2731
2731
  is?: string | undefined;
2732
+ /**
2733
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts}
2734
+ */
2735
+ exportparts?: string | undefined;
2736
+ /**
2737
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part}
2738
+ */
2739
+ part?: string | undefined;
2732
2740
  }
2733
2741
 
2734
2742
  interface AllHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -1,2 +1,33 @@
1
1
  // Expose `JSX` namespace in `global` namespace
2
- import "./";
2
+ import * as React from "./";
3
+
4
+ export interface JSXSource {
5
+ /**
6
+ * The source file where the element originates from.
7
+ */
8
+ fileName?: string | undefined;
9
+
10
+ /**
11
+ * The line number where the element was created.
12
+ */
13
+ lineNumber?: number | undefined;
14
+
15
+ /**
16
+ * The column number where the element was created.
17
+ */
18
+ columnNumber?: number | undefined;
19
+ }
20
+
21
+ /**
22
+ * Create a React element.
23
+ *
24
+ * You should not use this function directly. Use JSX and a transpiler instead.
25
+ */
26
+ export function jsxDEV(
27
+ type: React.ElementType,
28
+ props: unknown,
29
+ key: React.Key | undefined,
30
+ isStatic: boolean,
31
+ source?: JSXSource,
32
+ self?: unknown,
33
+ ): React.ReactElement;
@@ -1,2 +1,24 @@
1
1
  // Expose `JSX` namespace in `global` namespace
2
- import "./";
2
+ import * as React from "./";
3
+
4
+ /**
5
+ * Create a React element.
6
+ *
7
+ * You should not use this function directly. Use JSX and a transpiler instead.
8
+ */
9
+ export function jsx(
10
+ type: React.ElementType,
11
+ props: unknown,
12
+ key?: React.Key,
13
+ ): React.ReactElement;
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 jsxs(
21
+ type: React.ElementType,
22
+ props: unknown,
23
+ key?: React.Key,
24
+ ): React.ReactElement;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "15.7.29",
3
+ "version": "15.7.31",
4
4
  "description": "TypeScript definitions for react",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -80,6 +80,7 @@
80
80
  },
81
81
  "scripts": {},
82
82
  "dependencies": {},
83
- "typesPublisherContentHash": "177b903db5a2b6023b877852a86fad1fade8c05e68f6091745cb4437661fb8da",
84
- "typeScriptVersion": "4.6"
83
+ "peerDependencies": {},
84
+ "typesPublisherContentHash": "196ce12470b3d94ba800f2bb2e9df5167d3fe0c5210ea536edff62b8bcfc11cf",
85
+ "typeScriptVersion": "5.0"
85
86
  }