@types/react 17.0.61 → 17.0.62

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 v17.0/README.md CHANGED
@@ -8,9 +8,9 @@ This package contains type definitions for React (https://react.dev/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react/v17.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sat, 10 Jun 2023 08:02:56 GMT
11
+ * Last updated: Tue, 13 Jun 2023 15:32:53 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
 
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), [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), [Dale Tan](https://github.com/hellatan), and [Priyanshu Rav](https://github.com/priyanshurav).
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), [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), [Dale Tan](https://github.com/hellatan), [Priyanshu Rav](https://github.com/priyanshurav), and [Costa Alexoglou](https://github.com/konsalex).
react v17.0/index.d.ts CHANGED
@@ -26,8 +26,8 @@
26
26
  // Victor Magalhães <https://github.com/vhfmag>
27
27
  // Dale Tan <https://github.com/hellatan>
28
28
  // Priyanshu Rav <https://github.com/priyanshurav>
29
+ // Costa Alexoglou <https://github.com/konsalex>
29
30
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
30
- // TypeScript Version: 2.8
31
31
 
32
32
  /// <reference path="global.d.ts" />
33
33
 
@@ -803,10 +803,10 @@ declare namespace React {
803
803
 
804
804
  /** Ensures that the props do not include ref at all */
805
805
  type PropsWithoutRef<P> =
806
- // Pick would not be sufficient for this. We'd like to avoid unnecessary mapping and need a distributive conditional to support unions.
806
+ // Omit would not be sufficient for this. We'd like to avoid unnecessary mapping and need a distributive conditional to support unions.
807
807
  // see: https://www.typescriptlang.org/docs/handbook/2/conditional-types.html#distributive-conditional-types
808
808
  // https://github.com/Microsoft/TypeScript/issues/28339
809
- P extends any ? ('ref' extends keyof P ? Pick<P, Exclude<keyof P, 'ref'>> : P) : P;
809
+ P extends any ? ('ref' extends keyof P ? Omit<P, 'ref'> : P) : P;
810
810
  /** Ensures that the props do not include string ref, which cannot be forwarded */
811
811
  type PropsWithRef<P> =
812
812
  // Just "P extends { ref?: infer R }" looks sufficient, but R will infer as {} if P is {}.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "17.0.61",
3
+ "version": "17.0.62",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -131,6 +131,11 @@
131
131
  "name": "Priyanshu Rav",
132
132
  "url": "https://github.com/priyanshurav",
133
133
  "githubUsername": "priyanshurav"
134
+ },
135
+ {
136
+ "name": "Costa Alexoglou",
137
+ "url": "https://github.com/konsalex",
138
+ "githubUsername": "konsalex"
134
139
  }
135
140
  ],
136
141
  "main": "",
@@ -146,7 +151,7 @@
146
151
  "@types/scheduler": "*",
147
152
  "csstype": "^3.0.2"
148
153
  },
149
- "typesPublisherContentHash": "17ffa825baf5480d31e5233c06c3dcbc3403d22c85dd08958e04d72e4bda7f05",
154
+ "typesPublisherContentHash": "dd089125be79e10e0007e919f5b95768413e3b0ffcc27bc6e0b3849cd4781949",
150
155
  "typeScriptVersion": "4.3",
151
156
  "exports": {
152
157
  ".": {