@types/react 16.9.9 → 16.9.10

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 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, 16 Oct 2019 18:09:53 GMT
11
+ * Last updated: Thu, 24 Oct 2019 17:38:22 GMT
12
12
  * Dependencies: @types/csstype, @types/prop-types
13
13
  * Global values: React
14
14
 
react/global.d.ts CHANGED
@@ -2,6 +2,9 @@
2
2
  React projects that don't include the DOM library need these interfaces to compile.
3
3
  React Native applications use React, but there is no DOM available. The JavaScript runtime
4
4
  is ES6/ES2015 only. These definitions allow such projects to compile with only `--lib ES6`.
5
+
6
+ Warning: all of these interfaces are empty. If you want type definitions for various properties
7
+ (such as HTMLInputElement.prototype.value), you need to add `--lib DOM` (via command line or tsconfig.json).
5
8
  */
6
9
 
7
10
  interface Event { }
react/index.d.ts CHANGED
@@ -338,6 +338,8 @@ declare namespace React {
338
338
  displayName?: string;
339
339
  }
340
340
  function createContext<T>(
341
+ // If you thought this should be optional, see
342
+ // https://github.com/DefinitelyTyped/DefinitelyTyped/pull/24509#issuecomment-382213106
341
343
  defaultValue: T,
342
344
  calculateChangedBits?: (prev: T, next: T) => number
343
345
  ): Context<T>;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.9.9",
3
+ "version": "16.9.10",
4
4
  "description": "TypeScript definitions for React",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -119,6 +119,6 @@
119
119
  "@types/prop-types": "*",
120
120
  "csstype": "^2.2.0"
121
121
  },
122
- "typesPublisherContentHash": "7de3d69e84f5af61b3bc760bd4f2a18634fcbf57e7bf7cc4e0306aadb498307e",
122
+ "typesPublisherContentHash": "53e1815d9afcbb47175d31334d9375f2cb9a331043d21f4f9b7939b21b187be0",
123
123
  "typeScriptVersion": "2.8"
124
124
  }