@types/react 18.2.23 → 18.2.25
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/experimental.d.ts +9 -0
- react/index.d.ts +1 -2
- react/package.json +2 -2
- react/ts5.0/experimental.d.ts +9 -0
- react/ts5.0/index.d.ts +1 -2
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:
|
11
|
+
* Last updated: Wed, 04 Oct 2023 20:35:32 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
|
|
react/experimental.d.ts
CHANGED
@@ -137,4 +137,13 @@ declare module "." {
|
|
137
137
|
passthrough: State,
|
138
138
|
reducer: (state: State, action: Action) => State,
|
139
139
|
): [State, (action: Action) => void];
|
140
|
+
|
141
|
+
type Reference = object;
|
142
|
+
type TaintableUniqueValue = string | bigint | ArrayBufferView;
|
143
|
+
function experimental_taintUniqueValue(
|
144
|
+
message: string | undefined,
|
145
|
+
lifetime: Reference,
|
146
|
+
value: TaintableUniqueValue,
|
147
|
+
): void;
|
148
|
+
function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
|
140
149
|
}
|
react/index.d.ts
CHANGED
@@ -165,7 +165,7 @@ declare namespace React {
|
|
165
165
|
> {
|
166
166
|
type: T;
|
167
167
|
props: P;
|
168
|
-
key:
|
168
|
+
key: string | null;
|
169
169
|
}
|
170
170
|
|
171
171
|
interface ReactComponentElement<
|
@@ -204,7 +204,6 @@ declare namespace React {
|
|
204
204
|
}
|
205
205
|
|
206
206
|
interface ReactPortal extends ReactElement {
|
207
|
-
key: Key | null;
|
208
207
|
children: ReactNode;
|
209
208
|
}
|
210
209
|
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.2.
|
3
|
+
"version": "18.2.25",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -158,7 +158,7 @@
|
|
158
158
|
"@types/scheduler": "*",
|
159
159
|
"csstype": "^3.0.2"
|
160
160
|
},
|
161
|
-
"typesPublisherContentHash": "
|
161
|
+
"typesPublisherContentHash": "293d4bf886e62ed6ffc98ce5d5571027bf4fd50ad9b503b8780fd4e9198a7346",
|
162
162
|
"typeScriptVersion": "4.5",
|
163
163
|
"exports": {
|
164
164
|
".": {
|
react/ts5.0/experimental.d.ts
CHANGED
@@ -137,4 +137,13 @@ declare module "." {
|
|
137
137
|
passthrough: State,
|
138
138
|
reducer: (state: State, action: Action) => State,
|
139
139
|
): [State, (action: Action) => void];
|
140
|
+
|
141
|
+
type Reference = object;
|
142
|
+
type TaintableUniqueValue = string | bigint | ArrayBufferView;
|
143
|
+
function experimental_taintUniqueValue(
|
144
|
+
message: string | undefined,
|
145
|
+
lifetime: Reference,
|
146
|
+
value: TaintableUniqueValue,
|
147
|
+
): void;
|
148
|
+
function experimental_taintObjectReference(message: string | undefined, object: Reference): void;
|
140
149
|
}
|
react/ts5.0/index.d.ts
CHANGED
@@ -133,7 +133,7 @@ declare namespace React {
|
|
133
133
|
> {
|
134
134
|
type: T;
|
135
135
|
props: P;
|
136
|
-
key:
|
136
|
+
key: string | null;
|
137
137
|
}
|
138
138
|
|
139
139
|
interface ReactComponentElement<
|
@@ -172,7 +172,6 @@ declare namespace React {
|
|
172
172
|
}
|
173
173
|
|
174
174
|
interface ReactPortal extends ReactElement {
|
175
|
-
key: Key | null;
|
176
175
|
children: ReactNode;
|
177
176
|
}
|
178
177
|
|