@types/react 15.7.29 → 15.7.30
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 +1 -1
- react v15.7/jsx-dev-runtime.d.ts +32 -1
- react v15.7/jsx-runtime.d.ts +23 -1
- react v15.7/package.json +2 -2
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,
|
11
|
+
* Last updated: Mon, 26 Feb 2024 19:06:50 GMT
|
12
12
|
* Dependencies: none
|
13
13
|
|
14
14
|
# Credits
|
react v15.7/jsx-dev-runtime.d.ts
CHANGED
@@ -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;
|
react v15.7/jsx-runtime.d.ts
CHANGED
@@ -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;
|
react v15.7/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "15.7.
|
3
|
+
"version": "15.7.30",
|
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,6 @@
|
|
80
80
|
},
|
81
81
|
"scripts": {},
|
82
82
|
"dependencies": {},
|
83
|
-
"typesPublisherContentHash": "
|
83
|
+
"typesPublisherContentHash": "b5ee8affd651ffeaa7a820307b03d0053b2eba26b844634d27e6ac9655ccdac4",
|
84
84
|
"typeScriptVersion": "4.6"
|
85
85
|
}
|