@types/react 17.0.61 → 17.0.63
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 +2 -2
- react v17.0/index.d.ts +4 -4
- react v17.0/package.json +7 -2
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:
|
11
|
+
* Last updated: Tue, 08 Aug 2023 06:32:50 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),
|
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
|
-
//
|
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 ?
|
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 {}.
|
@@ -2244,7 +2244,7 @@ declare namespace React {
|
|
2244
2244
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
2245
2245
|
as?: string | undefined;
|
2246
2246
|
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
2247
|
-
|
2247
|
+
fetchPriority?: "high" | "low" | "auto";
|
2248
2248
|
href?: string | undefined;
|
2249
2249
|
hrefLang?: string | undefined;
|
2250
2250
|
integrity?: string | undefined;
|
react v17.0/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "17.0.
|
3
|
+
"version": "17.0.63",
|
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": "
|
154
|
+
"typesPublisherContentHash": "9cf630f6f67788f8f4aa68d00a60d7f31b84190e917350ec149d2994cfb3ac59",
|
150
155
|
"typeScriptVersion": "4.3",
|
151
156
|
"exports": {
|
152
157
|
".": {
|