@types/react 16.14.24 → 16.14.25

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 v16.14/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/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 10 Mar 2022 06:01:44 GMT
11
+ * Last updated: Thu, 14 Apr 2022 07:01:23 GMT
12
12
  * Dependencies: [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler)
13
13
  * Global values: `React`
14
14
 
react v16.14/index.d.ts CHANGED
@@ -3050,6 +3050,8 @@ type MergePropTypes<P, T> =
3050
3050
  & Pick<P, Exclude<keyof P, keyof T>>
3051
3051
  : never;
3052
3052
 
3053
+ type InexactPartial<T> = { [K in keyof T]?: T[K] | undefined };
3054
+
3053
3055
  // Any prop that has a default prop becomes optional, but its type is unchanged
3054
3056
  // Undeclared default props are augmented into the resulting allowable attributes
3055
3057
  // If declared props have indexed properties, ignore default props entirely as keyof gets widened
@@ -3057,8 +3059,8 @@ type MergePropTypes<P, T> =
3057
3059
  type Defaultize<P, D> = P extends any
3058
3060
  ? string extends keyof P ? P :
3059
3061
  & Pick<P, Exclude<keyof P, keyof D>>
3060
- & Partial<Pick<P, Extract<keyof P, keyof D>>>
3061
- & Partial<Pick<D, Exclude<keyof D, keyof P>>>
3062
+ & InexactPartial<Pick<P, Extract<keyof P, keyof D>>>
3063
+ & InexactPartial<Pick<D, Exclude<keyof D, keyof P>>>
3062
3064
  : never;
3063
3065
 
3064
3066
  type ReactManagedAttributes<C, P> = C extends { propTypes: infer T; defaultProps: infer D; }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.14.24",
3
+ "version": "16.14.25",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -146,6 +146,6 @@
146
146
  "@types/scheduler": "*",
147
147
  "csstype": "^3.0.2"
148
148
  },
149
- "typesPublisherContentHash": "b4ab2b34ee2fcd2358cef81a04a4ced6e35dfacb16f3c73e414ebdc0e40dd6b7",
149
+ "typesPublisherContentHash": "918da6a3d1987104bdd4cc436eadd7e2a98d5a2b4791ed9b200a239b09848834",
150
150
  "typeScriptVersion": "3.9"
151
151
  }