@types/react 16.9.55 → 16.9.56
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 -1
- react/package.json +2 -2
react/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.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Fri, 06 Nov 2020 08:32:07 GMT
|
12
12
|
* Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types)
|
13
13
|
* Global values: `React`
|
14
14
|
|
react/index.d.ts
CHANGED
@@ -558,8 +558,10 @@ declare namespace React {
|
|
558
558
|
displayName?: string;
|
559
559
|
}
|
560
560
|
|
561
|
+
type ForwardedRef<T> = ((instance: T | null) => void) | MutableRefObject<T | null> | null;
|
562
|
+
|
561
563
|
interface ForwardRefRenderFunction<T, P = {}> {
|
562
|
-
(props: PropsWithChildren<P>, ref:
|
564
|
+
(props: PropsWithChildren<P>, ref: ForwardedRef<T>): ReactElement | null;
|
563
565
|
displayName?: string;
|
564
566
|
// explicit rejected with `never` required due to
|
565
567
|
// https://github.com/microsoft/TypeScript/issues/36826
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.9.
|
3
|
+
"version": "16.9.56",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"license": "MIT",
|
6
6
|
"contributors": [
|
@@ -144,6 +144,6 @@
|
|
144
144
|
"@types/prop-types": "*",
|
145
145
|
"csstype": "^3.0.2"
|
146
146
|
},
|
147
|
-
"typesPublisherContentHash": "
|
147
|
+
"typesPublisherContentHash": "798794c43c5b79f66e0591a278096a90cfd06e875df950c18d74b907d73d7c62",
|
148
148
|
"typeScriptVersion": "3.2"
|
149
149
|
}
|