@types/react 18.3.26 → 18.3.28
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 v18.3/README.md +1 -1
- react v18.3/canary.d.ts +1 -1
- react v18.3/experimental.d.ts +3 -3
- react v18.3/index.d.ts +1 -1
- react v18.3/package.json +3 -3
- react v18.3/ts5.0/canary.d.ts +1 -1
- react v18.3/ts5.0/experimental.d.ts +3 -3
- react v18.3/ts5.0/index.d.ts +1 -1
react v18.3/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/v18.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 05 Feb 2026 09:44:59 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 v18.3/canary.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ declare module "." {
|
|
|
53
53
|
* context value, as given by the nearest context provider for the given context.
|
|
54
54
|
*
|
|
55
55
|
* @version 16.8.0
|
|
56
|
-
* @see https://react.dev/reference/react/useContext
|
|
56
|
+
* @see {@link https://react.dev/reference/react/useContext}
|
|
57
57
|
*/
|
|
58
58
|
function useContext<T extends ServerContextJSONValue>(context: ServerContext<T>): T;
|
|
59
59
|
export function createServerContext<T extends ServerContextJSONValue>(
|
react v18.3/experimental.d.ts
CHANGED
|
@@ -101,8 +101,8 @@ declare module "." {
|
|
|
101
101
|
* However, if you wrap these items in a `SuspenseList`, React will not show an item in the list
|
|
102
102
|
* until previous items have been displayed (this behavior is adjustable).
|
|
103
103
|
*
|
|
104
|
-
* @see https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist
|
|
105
|
-
* @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
|
|
104
|
+
* @see {@link https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist}
|
|
105
|
+
* @see {@link https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist}
|
|
106
106
|
*/
|
|
107
107
|
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
|
108
108
|
|
|
@@ -125,7 +125,7 @@ declare module "." {
|
|
|
125
125
|
|
|
126
126
|
export interface HTMLAttributes<T> {
|
|
127
127
|
/**
|
|
128
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
|
|
128
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert}
|
|
129
129
|
*/
|
|
130
130
|
inert?: boolean | undefined;
|
|
131
131
|
}
|
react v18.3/index.d.ts
CHANGED
|
@@ -2149,7 +2149,7 @@ declare namespace React {
|
|
|
2149
2149
|
*
|
|
2150
2150
|
* @param callback A synchronous, void callback that will execute as a single, complete React commit.
|
|
2151
2151
|
*
|
|
2152
|
-
* @see https://reactjs.org/blog/2019/02/06/react-v16.8.0.html#testing-hooks
|
|
2152
|
+
* @see {@link https://reactjs.org/blog/2019/02/06/react-v16.8.0.html#testing-hooks}
|
|
2153
2153
|
*/
|
|
2154
2154
|
// While act does always return Thenable, if a void function is passed, we pretend the return value is also void to not trigger dangling Promise lint rules.
|
|
2155
2155
|
export function act(callback: () => VoidOrUndefinedOnly): void;
|
react v18.3/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/react",
|
|
3
|
-
"version": "18.3.
|
|
3
|
+
"version": "18.3.28",
|
|
4
4
|
"description": "TypeScript definitions for react",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
|
6
6
|
"license": "MIT",
|
|
@@ -198,9 +198,9 @@
|
|
|
198
198
|
"scripts": {},
|
|
199
199
|
"dependencies": {
|
|
200
200
|
"@types/prop-types": "*",
|
|
201
|
-
"csstype": "^3.
|
|
201
|
+
"csstype": "^3.2.2"
|
|
202
202
|
},
|
|
203
203
|
"peerDependencies": {},
|
|
204
|
-
"typesPublisherContentHash": "
|
|
204
|
+
"typesPublisherContentHash": "0ea06bef541d937c6628af8b44027771d39c4189db995868d91ac6157c442c8f",
|
|
205
205
|
"typeScriptVersion": "5.2"
|
|
206
206
|
}
|
react v18.3/ts5.0/canary.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ declare module "." {
|
|
|
53
53
|
* context value, as given by the nearest context provider for the given context.
|
|
54
54
|
*
|
|
55
55
|
* @version 16.8.0
|
|
56
|
-
* @see https://react.dev/reference/react/useContext
|
|
56
|
+
* @see {@link https://react.dev/reference/react/useContext}
|
|
57
57
|
*/
|
|
58
58
|
function useContext<T extends ServerContextJSONValue>(context: ServerContext<T>): T;
|
|
59
59
|
export function createServerContext<T extends ServerContextJSONValue>(
|
|
@@ -101,8 +101,8 @@ declare module "." {
|
|
|
101
101
|
* However, if you wrap these items in a `SuspenseList`, React will not show an item in the list
|
|
102
102
|
* until previous items have been displayed (this behavior is adjustable).
|
|
103
103
|
*
|
|
104
|
-
* @see https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist
|
|
105
|
-
* @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
|
|
104
|
+
* @see {@link https://reactjs.org/docs/concurrent-mode-reference.html#suspenselist}
|
|
105
|
+
* @see {@link https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist}
|
|
106
106
|
*/
|
|
107
107
|
export const unstable_SuspenseList: ExoticComponent<SuspenseListProps>;
|
|
108
108
|
|
|
@@ -125,7 +125,7 @@ declare module "." {
|
|
|
125
125
|
|
|
126
126
|
export interface HTMLAttributes<T> {
|
|
127
127
|
/**
|
|
128
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
|
|
128
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert}
|
|
129
129
|
*/
|
|
130
130
|
inert?: boolean | undefined;
|
|
131
131
|
}
|
react v18.3/ts5.0/index.d.ts
CHANGED
|
@@ -2150,7 +2150,7 @@ declare namespace React {
|
|
|
2150
2150
|
*
|
|
2151
2151
|
* @param callback A synchronous, void callback that will execute as a single, complete React commit.
|
|
2152
2152
|
*
|
|
2153
|
-
* @see https://reactjs.org/blog/2019/02/06/react-v16.8.0.html#testing-hooks
|
|
2153
|
+
* @see {@link https://reactjs.org/blog/2019/02/06/react-v16.8.0.html#testing-hooks}
|
|
2154
2154
|
*/
|
|
2155
2155
|
// While act does always return Thenable, if a void function is passed, we pretend the return value is also void to not trigger dangling Promise lint rules.
|
|
2156
2156
|
export function act(callback: () => VoidOrUndefinedOnly): void;
|