@types/react 18.0.0 → 18.0.1

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.
Files changed (3) hide show
  1. react/README.md +1 -1
  2. react/experimental.d.ts +0 -16
  3. react/package.json +2 -2
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: Thu, 07 Apr 2022 17:31:22 GMT
11
+ * Last updated: Sat, 09 Apr 2022 18:01:20 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
@@ -102,20 +102,4 @@ declare module '.' {
102
102
  * @see https://reactjs.org/docs/concurrent-mode-patterns.html#suspenselist
103
103
  */
104
104
  export const SuspenseList: ExoticComponent<SuspenseListProps>;
105
-
106
- /**
107
- * this should be an internal type
108
- */
109
- interface MutableSource<T> {
110
- _source: T;
111
- }
112
-
113
- export type MutableSourceSubscribe<T> = (source: T, callback: () => void) => () => void;
114
-
115
- // TODO: This may not be intentionally part of the experimental release considering useMutableSource is no longer available
116
- /**
117
- * @param source A source could be anything as long as they can be subscribed to and have a "version".
118
- * @param getVersion A function returns a value which will change whenever part of the source changes.
119
- */
120
- export function unstable_createMutableSource<T>(source: T, getVersion: () => any): MutableSource<T>;
121
105
  }
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.0.0",
3
+ "version": "18.0.1",
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": "6779161312d4a456b9a73a478b25f72f9b02fc5b0117762da5cfd6e0883bb745",
149
+ "typesPublisherContentHash": "ddc52aa6c78f2a2ba91aafa55259e3f26332caf113976b09811527f1f795c40a",
150
150
  "typeScriptVersion": "3.9"
151
151
  }