@types/react 17.0.5 → 17.0.6

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: Tue, 04 May 2021 21:01:29 GMT
11
+ * Last updated: Tue, 18 May 2021 17:02:00 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
@@ -142,8 +142,8 @@ declare module '.' {
142
142
  *
143
143
  * The `useTransition` hook returns two values in an array.
144
144
  *
145
- * The first is a function that takes a callback. We can use it to tell React which state we want to defer.
146
- * The seconda boolean. It’s React’s way of informing us whether we’re waiting for the transition to finish.
145
+ * The first is boolean, React’s way of informing us whether we’re waiting for the transition to finish.
146
+ * The seconda is a function that takes a callback. We can use it to tell React which state we want to defer.
147
147
  *
148
148
  * **If some state update causes a component to suspend, that state update should be wrapped in a transition.**
149
149
  *
@@ -151,7 +151,7 @@ declare module '.' {
151
151
  *
152
152
  * @see https://reactjs.org/docs/concurrent-mode-reference.html#usetransition
153
153
  */
154
- export function unstable_useTransition(): [TransitionStartFunction, boolean];
154
+ export function unstable_useTransition(): [boolean, TransitionStartFunction];
155
155
 
156
156
  const opaqueIdentifierBranding: unique symbol;
157
157
  /**
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "17.0.5",
3
+ "version": "17.0.6",
4
4
  "description": "TypeScript definitions for React",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -145,6 +145,6 @@
145
145
  "@types/scheduler": "*",
146
146
  "csstype": "^3.0.2"
147
147
  },
148
- "typesPublisherContentHash": "514cc91387ce16f91be0344036cb6baace8d3536b18c355a2754beadca578609",
148
+ "typesPublisherContentHash": "fbd3e59d5003c016f5f04c4dcf2300cd7b3f854091b37d9f12516a0a49203656",
149
149
  "typeScriptVersion": "3.5"
150
150
  }