@types/react 18.0.37 → 18.2.0

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, 17 Apr 2023 17:02:45 GMT
11
+ * Last updated: Tue, 25 Apr 2023 10:32:40 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
@@ -105,4 +105,8 @@ declare module '.' {
105
105
 
106
106
  // tslint:disable-next-line ban-types
107
107
  export function experimental_useEffectEvent<T extends Function>(event: T): T;
108
+
109
+ interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS {
110
+ functions: (formData: FormData) => void;
111
+ }
108
112
  }
react/global.d.ts CHANGED
@@ -149,6 +149,7 @@ interface SVGTSpanElement extends SVGElement { }
149
149
  interface SVGUseElement extends SVGElement { }
150
150
  interface SVGViewElement extends SVGElement { }
151
151
 
152
+ interface FormData {}
152
153
  interface Text { }
153
154
  interface TouchList { }
154
155
  interface WebGLRenderingContext { }
react/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for React 18.0
1
+ // Type definitions for React 18.2
2
2
  // Project: https://react.dev/
3
3
  // Definitions by: Asana <https://asana.com>
4
4
  // AssureSign <http://www.assuresign.com>
@@ -1930,11 +1930,21 @@ declare namespace React {
1930
1930
  is?: string | undefined;
1931
1931
  }
1932
1932
 
1933
+ /**
1934
+ * For internal usage only.
1935
+ * Different release channels declare additional types of ReactNode this particular release channel accepts.
1936
+ * App or library types should never augment this interface.
1937
+ */
1938
+ interface DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS {}
1939
+
1933
1940
  interface AllHTMLAttributes<T> extends HTMLAttributes<T> {
1934
1941
  // Standard HTML Attributes
1935
1942
  accept?: string | undefined;
1936
1943
  acceptCharset?: string | undefined;
1937
- action?: string | undefined;
1944
+ action?:
1945
+ | string
1946
+ | undefined
1947
+ | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS];
1938
1948
  allowFullScreen?: boolean | undefined;
1939
1949
  allowTransparency?: boolean | undefined;
1940
1950
  alt?: string | undefined;
@@ -1963,7 +1973,10 @@ declare namespace React {
1963
1973
  download?: any;
1964
1974
  encType?: string | undefined;
1965
1975
  form?: string | undefined;
1966
- formAction?: string | undefined;
1976
+ formAction?:
1977
+ | string
1978
+ | undefined
1979
+ | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS];
1967
1980
  formEncType?: string | undefined;
1968
1981
  formMethod?: string | undefined;
1969
1982
  formNoValidate?: boolean | undefined;
@@ -2091,7 +2104,10 @@ declare namespace React {
2091
2104
  interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
2092
2105
  disabled?: boolean | undefined;
2093
2106
  form?: string | undefined;
2094
- formAction?: string | undefined;
2107
+ formAction?:
2108
+ | string
2109
+ | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS]
2110
+ | undefined;
2095
2111
  formEncType?: string | undefined;
2096
2112
  formMethod?: string | undefined;
2097
2113
  formNoValidate?: boolean | undefined;
@@ -2150,7 +2166,10 @@ declare namespace React {
2150
2166
 
2151
2167
  interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
2152
2168
  acceptCharset?: string | undefined;
2153
- action?: string | undefined;
2169
+ action?:
2170
+ | string
2171
+ | undefined
2172
+ | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS];
2154
2173
  autoComplete?: string | undefined;
2155
2174
  encType?: string | undefined;
2156
2175
  method?: string | undefined;
@@ -2240,7 +2259,10 @@ declare namespace React {
2240
2259
  disabled?: boolean | undefined;
2241
2260
  enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined;
2242
2261
  form?: string | undefined;
2243
- formAction?: string | undefined;
2262
+ formAction?:
2263
+ | string
2264
+ | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS]
2265
+ | undefined;
2244
2266
  formEncType?: string | undefined;
2245
2267
  formMethod?: string | undefined;
2246
2268
  formNoValidate?: boolean | undefined;
react/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "18.0.37",
3
+ "version": "18.2.0",
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": "5a0facae35cdfe863add83945b939a43c84cc9145fc8e064ac37dad9b5c9c6c1",
161
+ "typesPublisherContentHash": "78b0fe3f6c82d6b1f8f2da8f144be25ae0b224a58c8404ea721caac2ca4e6fd8",
162
162
  "typeScriptVersion": "4.3",
163
163
  "exports": {
164
164
  ".": {