@types/react 18.3.3 → 18.3.5
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 +1 -1
- react/index.d.ts +3 -3
- react/package.json +3 -3
- react/ts5.0/index.d.ts +3 -3
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:
|
11
|
+
* Last updated: Fri, 30 Aug 2024 10:07:55 GMT
|
12
12
|
* Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [csstype](https://npmjs.com/package/csstype)
|
13
13
|
|
14
14
|
# Credits
|
react/index.d.ts
CHANGED
@@ -1597,7 +1597,7 @@ declare namespace React {
|
|
1597
1597
|
* ```
|
1598
1598
|
*/
|
1599
1599
|
function forwardRef<T, P = {}>(
|
1600
|
-
render: ForwardRefRenderFunction<T, P
|
1600
|
+
render: ForwardRefRenderFunction<T, PropsWithoutRef<P>>,
|
1601
1601
|
): ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
|
1602
1602
|
|
1603
1603
|
/**
|
@@ -2428,9 +2428,9 @@ declare namespace React {
|
|
2428
2428
|
// Keyboard Events
|
2429
2429
|
onKeyDown?: KeyboardEventHandler<T> | undefined;
|
2430
2430
|
onKeyDownCapture?: KeyboardEventHandler<T> | undefined;
|
2431
|
-
/** @deprecated */
|
2431
|
+
/** @deprecated Use `onKeyUp` or `onKeyDown` instead */
|
2432
2432
|
onKeyPress?: KeyboardEventHandler<T> | undefined;
|
2433
|
-
/** @deprecated */
|
2433
|
+
/** @deprecated Use `onKeyUpCapture` or `onKeyDownCapture` instead */
|
2434
2434
|
onKeyPressCapture?: KeyboardEventHandler<T> | undefined;
|
2435
2435
|
onKeyUp?: KeyboardEventHandler<T> | undefined;
|
2436
2436
|
onKeyUpCapture?: KeyboardEventHandler<T> | undefined;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.3.
|
3
|
+
"version": "18.3.5",
|
4
4
|
"description": "TypeScript definitions for react",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -205,6 +205,6 @@
|
|
205
205
|
"@types/prop-types": "*",
|
206
206
|
"csstype": "^3.0.2"
|
207
207
|
},
|
208
|
-
"typesPublisherContentHash": "
|
209
|
-
"typeScriptVersion": "4.
|
208
|
+
"typesPublisherContentHash": "6ad0cf987de8ee79aa0c60da30eb89355ab2d1aea881111ba54ef704ea6425f4",
|
209
|
+
"typeScriptVersion": "4.8"
|
210
210
|
}
|
react/ts5.0/index.d.ts
CHANGED
@@ -1598,7 +1598,7 @@ declare namespace React {
|
|
1598
1598
|
* ```
|
1599
1599
|
*/
|
1600
1600
|
function forwardRef<T, P = {}>(
|
1601
|
-
render: ForwardRefRenderFunction<T, P
|
1601
|
+
render: ForwardRefRenderFunction<T, PropsWithoutRef<P>>,
|
1602
1602
|
): ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
|
1603
1603
|
|
1604
1604
|
/**
|
@@ -2429,9 +2429,9 @@ declare namespace React {
|
|
2429
2429
|
// Keyboard Events
|
2430
2430
|
onKeyDown?: KeyboardEventHandler<T> | undefined;
|
2431
2431
|
onKeyDownCapture?: KeyboardEventHandler<T> | undefined;
|
2432
|
-
/** @deprecated */
|
2432
|
+
/** @deprecated Use `onKeyUp` or `onKeyDown` instead */
|
2433
2433
|
onKeyPress?: KeyboardEventHandler<T> | undefined;
|
2434
|
-
/** @deprecated */
|
2434
|
+
/** @deprecated Use `onKeyUpCapture` or `onKeyDownCapture` instead */
|
2435
2435
|
onKeyPressCapture?: KeyboardEventHandler<T> | undefined;
|
2436
2436
|
onKeyUp?: KeyboardEventHandler<T> | undefined;
|
2437
2437
|
onKeyUpCapture?: KeyboardEventHandler<T> | undefined;
|