@types/react 18.3.10 → 18.3.12
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/README.md +2 -2
- react/canary.d.ts +1 -1
- react/experimental.d.ts +1 -1
- react/index.d.ts +1 -1
- react/package.json +3 -7
- react/ts5.0/canary.d.ts +1 -1
- react/ts5.0/experimental.d.ts +1 -1
- react/ts5.0/index.d.ts +1 -1
react/README.md
CHANGED
@@ -8,8 +8,8 @@ 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.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Wed, 23 Oct 2024 03:36:41 GMT
|
12
12
|
* Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [csstype](https://npmjs.com/package/csstype)
|
13
13
|
|
14
14
|
# Credits
|
15
|
-
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), [
|
15
|
+
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), [Priyanshu Rav](https://github.com/priyanshurav), [Dmitry Semigradsky](https://github.com/Semigradsky), and [Matt Pocock](https://github.com/mattpocock).
|
react/canary.d.ts
CHANGED
@@ -61,7 +61,7 @@ declare module "." {
|
|
61
61
|
defaultValue: T,
|
62
62
|
): ServerContext<T>;
|
63
63
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
65
65
|
export function cache<CachedFunction extends Function>(fn: CachedFunction): CachedFunction;
|
66
66
|
|
67
67
|
export function unstable_useCacheRefresh(): () => void;
|
react/experimental.d.ts
CHANGED
@@ -106,7 +106,7 @@ declare module "." {
|
|
106
106
|
*/
|
107
107
|
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
108
108
|
|
109
|
-
// eslint-disable-next-line @typescript-eslint/
|
109
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
110
110
|
export function experimental_useEffectEvent<T extends Function>(event: T): T;
|
111
111
|
|
112
112
|
type Reference = object;
|
react/index.d.ts
CHANGED
@@ -2057,7 +2057,7 @@ declare namespace React {
|
|
2057
2057
|
*/
|
2058
2058
|
// A specific function type would not trigger implicit any.
|
2059
2059
|
// See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/52873#issuecomment-845806435 for a comparison between `Function` and more specific types.
|
2060
|
-
// eslint-disable-next-line @typescript-eslint/
|
2060
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
2061
2061
|
function useCallback<T extends Function>(callback: T, deps: DependencyList): T;
|
2062
2062
|
/**
|
2063
2063
|
* `useMemo` will only recompute the memoized value when one of the `deps` has changed.
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.3.
|
3
|
+
"version": "18.3.12",
|
4
4
|
"description": "TypeScript definitions for react",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -122,11 +122,6 @@
|
|
122
122
|
"githubUsername": "vhfmag",
|
123
123
|
"url": "https://github.com/vhfmag"
|
124
124
|
},
|
125
|
-
{
|
126
|
-
"name": "Dale Tan",
|
127
|
-
"githubUsername": "hellatan",
|
128
|
-
"url": "https://github.com/hellatan"
|
129
|
-
},
|
130
125
|
{
|
131
126
|
"name": "Priyanshu Rav",
|
132
127
|
"githubUsername": "priyanshurav",
|
@@ -205,6 +200,7 @@
|
|
205
200
|
"@types/prop-types": "*",
|
206
201
|
"csstype": "^3.0.2"
|
207
202
|
},
|
208
|
-
"
|
203
|
+
"peerDependencies": {},
|
204
|
+
"typesPublisherContentHash": "d59942da5433cf6c9d66442070074fa48ef9c823a4175da6e4d183d0a70ccc72",
|
209
205
|
"typeScriptVersion": "4.8"
|
210
206
|
}
|
react/ts5.0/canary.d.ts
CHANGED
@@ -61,7 +61,7 @@ declare module "." {
|
|
61
61
|
defaultValue: T,
|
62
62
|
): ServerContext<T>;
|
63
63
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
65
65
|
export function cache<CachedFunction extends Function>(fn: CachedFunction): CachedFunction;
|
66
66
|
|
67
67
|
export function unstable_useCacheRefresh(): () => void;
|
react/ts5.0/experimental.d.ts
CHANGED
@@ -106,7 +106,7 @@ declare module "." {
|
|
106
106
|
*/
|
107
107
|
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
108
108
|
|
109
|
-
// eslint-disable-next-line @typescript-eslint/
|
109
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
110
110
|
export function experimental_useEffectEvent<T extends Function>(event: T): T;
|
111
111
|
|
112
112
|
type Reference = object;
|
react/ts5.0/index.d.ts
CHANGED
@@ -2058,7 +2058,7 @@ declare namespace React {
|
|
2058
2058
|
*/
|
2059
2059
|
// A specific function type would not trigger implicit any.
|
2060
2060
|
// See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/52873#issuecomment-845806435 for a comparison between `Function` and more specific types.
|
2061
|
-
// eslint-disable-next-line @typescript-eslint/
|
2061
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
2062
2062
|
function useCallback<T extends Function>(callback: T, deps: DependencyList): T;
|
2063
2063
|
/**
|
2064
2064
|
* `useMemo` will only recompute the memoized value when one of the `deps` has changed.
|