@types/react 18.3.11 → 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 +1 -1
- react/canary.d.ts +1 -1
- react/experimental.d.ts +1 -1
- react/index.d.ts +1 -1
- react/package.json +3 -2
- 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,7 +8,7 @@ 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: Wed,
|
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
|
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",
|
@@ -200,6 +200,7 @@
|
|
200
200
|
"@types/prop-types": "*",
|
201
201
|
"csstype": "^3.0.2"
|
202
202
|
},
|
203
|
-
"
|
203
|
+
"peerDependencies": {},
|
204
|
+
"typesPublisherContentHash": "d59942da5433cf6c9d66442070074fa48ef9c823a4175da6e4d183d0a70ccc72",
|
204
205
|
"typeScriptVersion": "4.8"
|
205
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.
|