@types/react 17.0.75 → 17.0.77
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 v17.0/README.md +1 -1
- react v17.0/index.d.ts +0 -2
- react v17.0/jsx-dev-runtime.d.ts +33 -1
- react v17.0/jsx-runtime.d.ts +24 -1
- react v17.0/package.json +3 -3
react v17.0/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/v17.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Thu, 14 Mar 2024 14:06:54 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
|
react v17.0/index.d.ts
CHANGED
@@ -1522,9 +1522,7 @@ declare namespace React {
|
|
1522
1522
|
onPointerCancel?: PointerEventHandler<T> | undefined;
|
1523
1523
|
onPointerCancelCapture?: PointerEventHandler<T> | undefined;
|
1524
1524
|
onPointerEnter?: PointerEventHandler<T> | undefined;
|
1525
|
-
onPointerEnterCapture?: PointerEventHandler<T> | undefined;
|
1526
1525
|
onPointerLeave?: PointerEventHandler<T> | undefined;
|
1527
|
-
onPointerLeaveCapture?: PointerEventHandler<T> | undefined;
|
1528
1526
|
onPointerOver?: PointerEventHandler<T> | undefined;
|
1529
1527
|
onPointerOverCapture?: PointerEventHandler<T> | undefined;
|
1530
1528
|
onPointerOut?: PointerEventHandler<T> | undefined;
|
react v17.0/jsx-dev-runtime.d.ts
CHANGED
@@ -1,2 +1,34 @@
|
|
1
1
|
// Expose `JSX` namespace in `global` namespace
|
2
|
-
import "./";
|
2
|
+
import * as React from "./";
|
3
|
+
export { Fragment } from "./";
|
4
|
+
|
5
|
+
export interface JSXSource {
|
6
|
+
/**
|
7
|
+
* The source file where the element originates from.
|
8
|
+
*/
|
9
|
+
fileName?: string | undefined;
|
10
|
+
|
11
|
+
/**
|
12
|
+
* The line number where the element was created.
|
13
|
+
*/
|
14
|
+
lineNumber?: number | undefined;
|
15
|
+
|
16
|
+
/**
|
17
|
+
* The column number where the element was created.
|
18
|
+
*/
|
19
|
+
columnNumber?: number | undefined;
|
20
|
+
}
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Create a React element.
|
24
|
+
*
|
25
|
+
* You should not use this function directly. Use JSX and a transpiler instead.
|
26
|
+
*/
|
27
|
+
export function jsxDEV(
|
28
|
+
type: React.ElementType,
|
29
|
+
props: unknown,
|
30
|
+
key: React.Key | undefined,
|
31
|
+
isStatic: boolean,
|
32
|
+
source?: JSXSource,
|
33
|
+
self?: unknown,
|
34
|
+
): React.ReactElement;
|
react v17.0/jsx-runtime.d.ts
CHANGED
@@ -1,2 +1,25 @@
|
|
1
1
|
// Expose `JSX` namespace in `global` namespace
|
2
|
-
import "./";
|
2
|
+
import * as React from "./";
|
3
|
+
export { Fragment } from "./";
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Create a React element.
|
7
|
+
*
|
8
|
+
* You should not use this function directly. Use JSX and a transpiler instead.
|
9
|
+
*/
|
10
|
+
export function jsx(
|
11
|
+
type: React.ElementType,
|
12
|
+
props: unknown,
|
13
|
+
key?: React.Key,
|
14
|
+
): React.ReactElement;
|
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 jsxs(
|
22
|
+
type: React.ElementType,
|
23
|
+
props: unknown,
|
24
|
+
key?: React.Key,
|
25
|
+
): React.ReactElement;
|
react v17.0/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "17.0.
|
3
|
+
"version": "17.0.77",
|
4
4
|
"description": "TypeScript definitions for react",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -169,6 +169,6 @@
|
|
169
169
|
"@types/scheduler": "*",
|
170
170
|
"csstype": "^3.0.2"
|
171
171
|
},
|
172
|
-
"typesPublisherContentHash": "
|
173
|
-
"typeScriptVersion": "4.
|
172
|
+
"typesPublisherContentHash": "eea24ffdb4db4475d02a6f66e629a4c99cea48656ffd84ef7004da7c05e728cc",
|
173
|
+
"typeScriptVersion": "4.7"
|
174
174
|
}
|