@types/react 18.2.12 → 18.2.13

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: Mon, 12 Jun 2023 19:03:02 GMT
11
+ * Last updated: Mon, 19 Jun 2023 12:32:43 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
 
@@ -1,21 +1,21 @@
1
1
  /**
2
- * These are types for things that are present in the React `next` release channel.
2
+ * These are types for things that are present in the React `canary` release channel.
3
3
  *
4
4
  * To load the types declared here in an actual project, there are three ways. The easiest one,
5
5
  * if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
6
- * is to add `"react/next"` to the `"types"` array.
6
+ * is to add `"react/canary"` to the `"types"` array.
7
7
  *
8
8
  * Alternatively, a specific import syntax can to be used from a typescript file.
9
9
  * This module does not exist in reality, which is why the {} is important:
10
10
  *
11
11
  * ```ts
12
- * import {} from 'react/next'
12
+ * import {} from 'react/canary'
13
13
  * ```
14
14
  *
15
15
  * It is also possible to include it through a triple-slash reference:
16
16
  *
17
17
  * ```ts
18
- * /// <reference types="react/next" />
18
+ * /// <reference types="react/canary" />
19
19
  * ```
20
20
  *
21
21
  * Either the import or the reference only needs to appear once, anywhere in the project.
react/experimental.d.ts CHANGED
@@ -34,7 +34,7 @@
34
34
  //
35
35
  // Suspense-related handling can be found in ReactFiberThrow.js.
36
36
 
37
- import React = require('./next');
37
+ import React = require('./canary');
38
38
 
39
39
  export {};
40
40
 
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.2.12",
3
+ "version": "18.2.13",
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": "a83490c108f5d69fef676031c72b9933afbe4ae8d2c4779aa8ce2f1649b571f5",
161
+ "typesPublisherContentHash": "b54e732d28ad9434eba04af3d37515dcf07238074c08bfa936b5396c554d9b9c",
162
162
  "typeScriptVersion": "4.3",
163
163
  "exports": {
164
164
  ".": {
@@ -169,12 +169,12 @@
169
169
  "default": "./index.d.ts"
170
170
  }
171
171
  },
172
- "./next": {
172
+ "./canary": {
173
173
  "types@<=5.0": {
174
- "default": "./ts5.0/next.d.ts"
174
+ "default": "./ts5.0/canary.d.ts"
175
175
  },
176
176
  "types": {
177
- "default": "./next.d.ts"
177
+ "default": "./canary.d.ts"
178
178
  }
179
179
  },
180
180
  "./experimental": {
@@ -1,21 +1,21 @@
1
1
  /**
2
- * These are types for things that are present in the React `next` release channel.
2
+ * These are types for things that are present in the React `canary` release channel.
3
3
  *
4
4
  * To load the types declared here in an actual project, there are three ways. The easiest one,
5
5
  * if your `tsconfig.json` already has a `"types"` array in the `"compilerOptions"` section,
6
- * is to add `"react/next"` to the `"types"` array.
6
+ * is to add `"react/canary"` to the `"types"` array.
7
7
  *
8
8
  * Alternatively, a specific import syntax can to be used from a typescript file.
9
9
  * This module does not exist in reality, which is why the {} is important:
10
10
  *
11
11
  * ```ts
12
- * import {} from 'react/next'
12
+ * import {} from 'react/canary'
13
13
  * ```
14
14
  *
15
15
  * It is also possible to include it through a triple-slash reference:
16
16
  *
17
17
  * ```ts
18
- * /// <reference types="react/next" />
18
+ * /// <reference types="react/canary" />
19
19
  * ```
20
20
  *
21
21
  * Either the import or the reference only needs to appear once, anywhere in the project.
@@ -34,7 +34,7 @@
34
34
  //
35
35
  // Suspense-related handling can be found in ReactFiberThrow.js.
36
36
 
37
- import React = require('./next');
37
+ import React = require('./canary');
38
38
 
39
39
  export {};
40
40