@types/react 18.2.11 → 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: Sat, 10 Jun 2023 15:02:50 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/index.d.ts CHANGED
@@ -2970,6 +2970,7 @@ declare namespace React {
2970
2970
  ruby: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2971
2971
  s: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2972
2972
  samp: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2973
+ search: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2973
2974
  slot: DetailedHTMLFactory<SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>;
2974
2975
  script: DetailedHTMLFactory<ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;
2975
2976
  section: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
@@ -3339,6 +3340,7 @@ declare global {
3339
3340
  ruby: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
3340
3341
  s: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
3341
3342
  samp: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
3343
+ search: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
3342
3344
  slot: React.DetailedHTMLProps<React.SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>;
3343
3345
  script: React.DetailedHTMLProps<React.ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;
3344
3346
  section: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.2.11",
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": "5ff37699cd67d56fc9e30f39678818ff90d4efa0c2a7dde230358023714236e2",
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
 
react/ts5.0/index.d.ts CHANGED
@@ -2939,6 +2939,7 @@ declare namespace React {
2939
2939
  ruby: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2940
2940
  s: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2941
2941
  samp: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2942
+ search: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
2942
2943
  slot: DetailedHTMLFactory<SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>;
2943
2944
  script: DetailedHTMLFactory<ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;
2944
2945
  section: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
@@ -3294,6 +3295,7 @@ declare global {
3294
3295
  ruby: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
3295
3296
  s: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
3296
3297
  samp: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
3298
+ search: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
3297
3299
  slot: React.DetailedHTMLProps<React.SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>;
3298
3300
  script: React.DetailedHTMLProps<React.ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;
3299
3301
  section: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;