@types/react 18.2.24 → 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 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: Sun, 01 Oct 2023 10:05:57 GMT
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.2.24",
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": "c17adf75e0ce8a2aea840595092cfa07671746c86fd5213d1c3bdd302ab350d9",
161
+ "typesPublisherContentHash": "293d4bf886e62ed6ffc98ce5d5571027bf4fd50ad9b503b8780fd4e9198a7346",
162
162
  "typeScriptVersion": "4.5",
163
163
  "exports": {
164
164
  ".": {
@@ -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
  }