@types/react 16.8.16 → 16.8.17

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 +4 -4
  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/rea
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react
9
9
 
10
10
  Additional Details
11
- * Last updated: Sat, 04 May 2019 00:40:50 GMT
11
+ * Last updated: Wed, 08 May 2019 03:15:30 GMT
12
12
  * Dependencies: @types/csstype, @types/prop-types
13
13
  * Global values: React
14
14
 
react/index.d.ts CHANGED
@@ -777,9 +777,9 @@ declare namespace React {
777
777
 
778
778
  // will show `Memo(${Component.displayName || Component.name})` in devtools by default,
779
779
  // but can be given its own specific name
780
- interface MemoExoticComponent<T extends ComponentType<any>> extends NamedExoticComponent<ComponentPropsWithRef<T>> {
780
+ type MemoExoticComponent<T extends ComponentType<any>> = NamedExoticComponent<ComponentPropsWithRef<T>> & {
781
781
  readonly type: T;
782
- }
782
+ };
783
783
 
784
784
  function memo<P extends object>(
785
785
  Component: SFC<P>,
@@ -790,9 +790,9 @@ declare namespace React {
790
790
  propsAreEqual?: (prevProps: Readonly<ComponentProps<T>>, nextProps: Readonly<ComponentProps<T>>) => boolean
791
791
  ): MemoExoticComponent<T>;
792
792
 
793
- interface LazyExoticComponent<T extends ComponentType<any>> extends ExoticComponent<ComponentPropsWithRef<T>> {
793
+ type LazyExoticComponent<T extends ComponentType<any>> = ExoticComponent<ComponentPropsWithRef<T>> & {
794
794
  readonly _result: T;
795
- }
795
+ };
796
796
 
797
797
  function lazy<T extends ComponentType<any>>(
798
798
  factory: () => Promise<{ default: T }>
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.8.16",
3
+ "version": "16.8.17",
4
4
  "description": "TypeScript definitions for React",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -124,6 +124,6 @@
124
124
  "@types/prop-types": "*",
125
125
  "csstype": "^2.2.0"
126
126
  },
127
- "typesPublisherContentHash": "e8be3ca761e5702641fe949a40ae2350ad89e7f080fe25d1e3b109bf1a99799c",
127
+ "typesPublisherContentHash": "66cd5c35fa8046ca1a9a132c5892894805ec3ee57c62737d94259aee4270bc57",
128
128
  "typeScriptVersion": "2.8"
129
129
  }