@types/react 16.9.49 → 16.9.50

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 +6 -2
  3. react/package.json +3 -3
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: Mon, 31 Aug 2020 16:41:48 GMT
11
+ * Last updated: Thu, 01 Oct 2020 22:50:50 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
@@ -475,12 +475,12 @@ declare namespace React {
475
475
  // TODO (TypeScript 3.0): unknown
476
476
  context: any;
477
477
 
478
- constructor(props: Readonly<P>);
478
+ constructor(props: Readonly<P> | P);
479
479
  /**
480
480
  * @deprecated
481
481
  * @see https://reactjs.org/docs/legacy-context.html
482
482
  */
483
- constructor(props: P, context?: any);
483
+ constructor(props: P, context: any);
484
484
 
485
485
  // We MUST keep setState() as a unified signature because it allows proper checking of the method return type.
486
486
  // See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18365#issuecomment-351013257
@@ -2035,14 +2035,18 @@ declare namespace React {
2035
2035
  allow?: string;
2036
2036
  allowFullScreen?: boolean;
2037
2037
  allowTransparency?: boolean;
2038
+ /** @deprecated */
2038
2039
  frameBorder?: number | string;
2039
2040
  height?: number | string;
2040
2041
  loading?: "eager" | "lazy";
2042
+ /** @deprecated */
2041
2043
  marginHeight?: number;
2044
+ /** @deprecated */
2042
2045
  marginWidth?: number;
2043
2046
  name?: string;
2044
2047
  referrerPolicy?: string;
2045
2048
  sandbox?: string;
2049
+ /** @deprecated */
2046
2050
  scrolling?: string;
2047
2051
  seamless?: boolean;
2048
2052
  src?: string;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.9.49",
3
+ "version": "16.9.50",
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": "b034149a5cda0dd4cd3ee0abc4fec00bfcaf5a2d7d57ac0b8097f45735912dd3",
148
- "typeScriptVersion": "3.1"
147
+ "typesPublisherContentHash": "d06fbb807d1c7e589941f818eb89a32451ca691636a2acf4c4220fe4a26b9db6",
148
+ "typeScriptVersion": "3.2"
149
149
  }