@types/react 16.14.23 → 16.14.26
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 v16.14/README.md +1 -1
- react v16.14/index.d.ts +8 -2
- react v16.14/package.json +3 -3
react v16.14/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for React (http://facebook.github.io/reac
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react/v16.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Fri, 06 May 2022 20:01:40 GMT
|
12
12
|
* Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler)
|
13
13
|
* Global values: `React`
|
14
14
|
|
react v16.14/index.d.ts
CHANGED
@@ -1388,7 +1388,9 @@ declare namespace React {
|
|
1388
1388
|
// Keyboard Events
|
1389
1389
|
onKeyDown?: KeyboardEventHandler<T> | undefined;
|
1390
1390
|
onKeyDownCapture?: KeyboardEventHandler<T> | undefined;
|
1391
|
+
/** @deprecated */
|
1391
1392
|
onKeyPress?: KeyboardEventHandler<T> | undefined;
|
1393
|
+
/** @deprecated */
|
1392
1394
|
onKeyPressCapture?: KeyboardEventHandler<T> | undefined;
|
1393
1395
|
onKeyUp?: KeyboardEventHandler<T> | undefined;
|
1394
1396
|
onKeyUpCapture?: KeyboardEventHandler<T> | undefined;
|
@@ -2082,6 +2084,8 @@ declare namespace React {
|
|
2082
2084
|
}
|
2083
2085
|
|
2084
2086
|
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
2087
|
+
onCancel?: ReactEventHandler<T> | undefined;
|
2088
|
+
onClose?: ReactEventHandler<T> | undefined;
|
2085
2089
|
open?: boolean | undefined;
|
2086
2090
|
}
|
2087
2091
|
|
@@ -3048,6 +3052,8 @@ type MergePropTypes<P, T> =
|
|
3048
3052
|
& Pick<P, Exclude<keyof P, keyof T>>
|
3049
3053
|
: never;
|
3050
3054
|
|
3055
|
+
type InexactPartial<T> = { [K in keyof T]?: T[K] | undefined };
|
3056
|
+
|
3051
3057
|
// Any prop that has a default prop becomes optional, but its type is unchanged
|
3052
3058
|
// Undeclared default props are augmented into the resulting allowable attributes
|
3053
3059
|
// If declared props have indexed properties, ignore default props entirely as keyof gets widened
|
@@ -3055,8 +3061,8 @@ type MergePropTypes<P, T> =
|
|
3055
3061
|
type Defaultize<P, D> = P extends any
|
3056
3062
|
? string extends keyof P ? P :
|
3057
3063
|
& Pick<P, Exclude<keyof P, keyof D>>
|
3058
|
-
&
|
3059
|
-
&
|
3064
|
+
& InexactPartial<Pick<P, Extract<keyof P, keyof D>>>
|
3065
|
+
& InexactPartial<Pick<D, Exclude<keyof D, keyof P>>>
|
3060
3066
|
: never;
|
3061
3067
|
|
3062
3068
|
type ReactManagedAttributes<C, P> = C extends { propTypes: infer T; defaultProps: infer D; }
|
react v16.14/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.14.
|
3
|
+
"version": "16.14.26",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -146,6 +146,6 @@
|
|
146
146
|
"@types/scheduler": "*",
|
147
147
|
"csstype": "^3.0.2"
|
148
148
|
},
|
149
|
-
"typesPublisherContentHash": "
|
150
|
-
"typeScriptVersion": "3.
|
149
|
+
"typesPublisherContentHash": "f1a257378a55bc4b5a864f9764913ff5064f3a036cea13a7b54229e73dc31dc2",
|
150
|
+
"typeScriptVersion": "3.9"
|
151
151
|
}
|