@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.
Files changed (3) hide show
  1. react/README.md +1 -1
  2. react/index.d.ts +3 -1
  3. 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: Wed, 28 Oct 2020 18:56:19 GMT
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: ((instance: T | null) => void) | MutableRefObject<T | null> | null): ReactElement | null;
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.55",
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": "aaafb411c8479f94d32139bfbd85aba32a4428942e2f24f96576263b7d78fcc3",
147
+ "typesPublisherContentHash": "798794c43c5b79f66e0591a278096a90cfd06e875df950c18d74b907d73d7c62",
148
148
  "typeScriptVersion": "3.2"
149
149
  }