@types/react 16.9.37 → 16.9.41

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 +2 -2
  2. react/index.d.ts +6 -9
  3. react/package.json +7 -2
react/README.md CHANGED
@@ -8,9 +8,9 @@ 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, 17 Jun 2020 06:54:23 GMT
11
+ * Last updated: Wed, 24 Jun 2020 09:45:42 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
 
15
15
  # Credits
16
- These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [John Reilly](https://github.com/johnnyreilly), [Benoit Benezech](https://github.com/bbenezech), [Patricio Zavolinsky](https://github.com/pzavolinsky), [Digiguru](https://github.com/digiguru), [Eric Anderson](https://github.com/ericanderson), [Dovydas Navickas](https://github.com/DovydasNavickas), [Josh Rutherford](https://github.com/theruther4d), [Guilherme Hübner](https://github.com/guilhermehubner), [Ferdy Budhidharma](https://github.com/ferdaber), [Johann Rakotoharisoa](https://github.com/jrakotoharisoa), [Olivier Pascal](https://github.com/pascaloliv), [Martin Hochel](https://github.com/hotell), [Frank Li](https://github.com/franklixuefei), [Jessica Franco](https://github.com/Jessidhia), [Saransh Kataria](https://github.com/saranshkataria), [Kanitkorn Sujautra](https://github.com/lukyth), [Sebastian Silbermann](https://github.com/eps1lon), [Kyle Scully](https://github.com/zieka), [Cong Zhang](https://github.com/dancerphil), [Dimitri Mitropoulos](https://github.com/dimitropoulos), [JongChan Choi](https://github.com/disjukr), and [Victor Magalhães](https://github.com/vhfmag).
16
+ These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [John Reilly](https://github.com/johnnyreilly), [Benoit Benezech](https://github.com/bbenezech), [Patricio Zavolinsky](https://github.com/pzavolinsky), [Digiguru](https://github.com/digiguru), [Eric Anderson](https://github.com/ericanderson), [Dovydas Navickas](https://github.com/DovydasNavickas), [Josh Rutherford](https://github.com/theruther4d), [Guilherme Hübner](https://github.com/guilhermehubner), [Ferdy Budhidharma](https://github.com/ferdaber), [Johann Rakotoharisoa](https://github.com/jrakotoharisoa), [Olivier Pascal](https://github.com/pascaloliv), [Martin Hochel](https://github.com/hotell), [Frank Li](https://github.com/franklixuefei), [Jessica Franco](https://github.com/Jessidhia), [Saransh Kataria](https://github.com/saranshkataria), [Kanitkorn Sujautra](https://github.com/lukyth), [Sebastian Silbermann](https://github.com/eps1lon), [Kyle Scully](https://github.com/zieka), [Cong Zhang](https://github.com/dancerphil), [Dimitri Mitropoulos](https://github.com/dimitropoulos), [JongChan Choi](https://github.com/disjukr), [Victor Magalhães](https://github.com/vhfmag), and [Dale Tan](https://github.com/hellatan).
react/index.d.ts CHANGED
@@ -25,6 +25,7 @@
25
25
  // Dimitri Mitropoulos <https://github.com/dimitropoulos>
26
26
  // JongChan Choi <https://github.com/disjukr>
27
27
  // Victor Magalhães <https://github.com/vhfmag>
28
+ // Dale Tan <https://github.com/hellatan>
28
29
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
29
30
  // TypeScript Version: 2.8
30
31
 
@@ -339,7 +340,6 @@ declare namespace React {
339
340
 
340
341
  interface ConsumerProps<T> {
341
342
  children: (value: T) => ReactNode;
342
- unstable_observedBits?: number;
343
343
  }
344
344
 
345
345
  // TODO: similar to how Fragment is actually a symbol, the values returned from createContext,
@@ -383,7 +383,6 @@ declare namespace React {
383
383
  // If you thought this should be optional, see
384
384
  // https://github.com/DefinitelyTyped/DefinitelyTyped/pull/24509#issuecomment-382213106
385
385
  defaultValue: T,
386
- calculateChangedBits?: (prev: T, next: T) => number
387
386
  ): Context<T>;
388
387
 
389
388
  function isValidElement<P>(object: {} | null | undefined): object is ReactElement<P>;
@@ -397,12 +396,6 @@ declare namespace React {
397
396
 
398
397
  /** A fallback react tree to show when a Suspense child (like React.lazy) suspends */
399
398
  fallback: NonNullable<ReactNode>|null;
400
- /**
401
- * Tells React whether to “skip” revealing this boundary during the initial load.
402
- * This API will likely be removed in a future release.
403
- */
404
- // NOTE: this is unflagged and is respected even in stable builds
405
- unstable_avoidThisFallback?: boolean;
406
399
  }
407
400
  /**
408
401
  * This feature is not yet available for server-side rendering.
@@ -1223,6 +1216,7 @@ declare namespace React {
1223
1216
  metaKey: boolean;
1224
1217
  repeat: boolean;
1225
1218
  shiftKey: boolean;
1219
+ /** @deprecated */
1226
1220
  which: number;
1227
1221
  }
1228
1222
 
@@ -1248,7 +1242,7 @@ declare namespace React {
1248
1242
  shiftKey: boolean;
1249
1243
  }
1250
1244
 
1251
- interface TouchEvent<T = Element> extends SyntheticEvent<T, NativeTouchEvent> {
1245
+ interface TouchEvent<T = Element> extends UIEvent<T, NativeTouchEvent> {
1252
1246
  altKey: boolean;
1253
1247
  changedTouches: TouchList;
1254
1248
  ctrlKey: boolean;
@@ -2266,6 +2260,7 @@ declare namespace React {
2266
2260
  cellPadding?: number | string;
2267
2261
  cellSpacing?: number | string;
2268
2262
  summary?: string;
2263
+ width?: number | string;
2269
2264
  }
2270
2265
 
2271
2266
  interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -2295,6 +2290,8 @@ declare namespace React {
2295
2290
  rowSpan?: number;
2296
2291
  scope?: string;
2297
2292
  abbr?: string;
2293
+ height?: number | string;
2294
+ width?: number | string;
2298
2295
  valign?: "top" | "middle" | "bottom" | "baseline";
2299
2296
  }
2300
2297
 
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.9.37",
3
+ "version": "16.9.41",
4
4
  "description": "TypeScript definitions for React",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -125,6 +125,11 @@
125
125
  "name": "Victor Magalhães",
126
126
  "url": "https://github.com/vhfmag",
127
127
  "githubUsername": "vhfmag"
128
+ },
129
+ {
130
+ "name": "Dale Tan",
131
+ "url": "https://github.com/hellatan",
132
+ "githubUsername": "hellatan"
128
133
  }
129
134
  ],
130
135
  "main": "",
@@ -139,6 +144,6 @@
139
144
  "@types/prop-types": "*",
140
145
  "csstype": "^2.2.0"
141
146
  },
142
- "typesPublisherContentHash": "5c289be2dd79e36d235df5e86936420bf81d483fc291c5723544b4e8c5ea2e3f",
147
+ "typesPublisherContentHash": "4c0b3bc07ee1235f830afeedefdf63374d72c5797e1f1cee0b30237c09f8cd82",
143
148
  "typeScriptVersion": "3.0"
144
149
  }