@types/react 17.0.25 → 17.0.26

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 (http://facebook.github.io/reac
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, 29 Sep 2021 17:01:25 GMT
11
+ * Last updated: Thu, 30 Sep 2021 11:31:19 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
@@ -51,4 +51,12 @@ declare module '.' {
51
51
  getSnapshot: () => Snapshot,
52
52
  getServerSnapshot?: () => Snapshot,
53
53
  ): Snapshot;
54
+
55
+ /**
56
+ * @param effect Imperative function that can return a cleanup function
57
+ * @param deps If present, effect will only activate if the values in the list change.
58
+ *
59
+ * @see https://github.com/facebook/react/pull/21913
60
+ */
61
+ export function unstable_useInsertionEffect(effect: EffectCallback, deps?: DependencyList): void;
54
62
  }
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "17.0.25",
3
+ "version": "17.0.26",
4
4
  "description": "TypeScript definitions for React",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -146,6 +146,6 @@
146
146
  "@types/scheduler": "*",
147
147
  "csstype": "^3.0.2"
148
148
  },
149
- "typesPublisherContentHash": "523e298f37c2eaf808935ac2f2cb1e9b6d535879071b61178eb46b49c392792c",
149
+ "typesPublisherContentHash": "425b2f886c3a29a9ee6901e7a172edfa3b90c6934f8fab1cc294b04f6358e909",
150
150
  "typeScriptVersion": "3.7"
151
151
  }