@types/react 16.14.62 → 16.14.64

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 v16.14/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/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 27 Sep 2024 16:08:32 GMT
11
+ * Last updated: Wed, 21 May 2025 10:38:15 GMT
12
12
  * Dependencies: [@types/prop-types](https://npmjs.com/package/@types/prop-types), [@types/scheduler](https://npmjs.com/package/@types/scheduler), [csstype](https://npmjs.com/package/csstype)
13
13
 
14
14
  # Credits
@@ -13,6 +13,7 @@ interface ClipboardEvent extends Event {}
13
13
  interface CompositionEvent extends Event {}
14
14
  interface DragEvent extends Event {}
15
15
  interface FocusEvent extends Event {}
16
+ interface InputEvent extends Event {}
16
17
  interface KeyboardEvent extends Event {}
17
18
  interface MouseEvent extends Event {}
18
19
  interface TouchEvent extends Event {}
react v16.14/index.d.ts CHANGED
@@ -13,6 +13,7 @@ type NativeClipboardEvent = ClipboardEvent;
13
13
  type NativeCompositionEvent = CompositionEvent;
14
14
  type NativeDragEvent = DragEvent;
15
15
  type NativeFocusEvent = FocusEvent;
16
+ type NativeInputEvent = InputEvent;
16
17
  type NativeKeyboardEvent = KeyboardEvent;
17
18
  type NativeMouseEvent = MouseEvent;
18
19
  type NativeTouchEvent = TouchEvent;
@@ -1202,6 +1203,10 @@ declare namespace React {
1202
1203
  target: EventTarget & T;
1203
1204
  }
1204
1205
 
1206
+ interface InputEvent<T = Element> extends SyntheticEvent<T, NativeInputEvent> {
1207
+ data: string;
1208
+ }
1209
+
1205
1210
  export type ModifierKey =
1206
1211
  | "Alt"
1207
1212
  | "AltGraph"
@@ -1316,6 +1321,7 @@ declare namespace React {
1316
1321
  type FocusEventHandler<T = Element> = EventHandler<FocusEvent<T>>;
1317
1322
  type FormEventHandler<T = Element> = EventHandler<FormEvent<T>>;
1318
1323
  type ChangeEventHandler<T = Element> = EventHandler<ChangeEvent<T>>;
1324
+ type InputEventHandler<T = Element> = EventHandler<InputEvent<T>>;
1319
1325
  type KeyboardEventHandler<T = Element> = EventHandler<KeyboardEvent<T>>;
1320
1326
  type MouseEventHandler<T = Element> = EventHandler<MouseEvent<T>>;
1321
1327
  type TouchEventHandler<T = Element> = EventHandler<TouchEvent<T>>;
@@ -1393,7 +1399,7 @@ declare namespace React {
1393
1399
  // Form Events
1394
1400
  onChange?: FormEventHandler<T> | undefined;
1395
1401
  onChangeCapture?: FormEventHandler<T> | undefined;
1396
- onBeforeInput?: FormEventHandler<T> | undefined;
1402
+ onBeforeInput?: InputEventHandler<T> | undefined;
1397
1403
  onBeforeInputCapture?: FormEventHandler<T> | undefined;
1398
1404
  onInput?: FormEventHandler<T> | undefined;
1399
1405
  onInputCapture?: FormEventHandler<T> | undefined;
@@ -1923,6 +1929,14 @@ declare namespace React {
1923
1929
  * @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
1924
1930
  */
1925
1931
  is?: string | undefined;
1932
+ /**
1933
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts}
1934
+ */
1935
+ exportparts?: string | undefined;
1936
+ /**
1937
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part}
1938
+ */
1939
+ part?: string | undefined;
1926
1940
  }
1927
1941
 
1928
1942
  interface AllHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react",
3
- "version": "16.14.62",
3
+ "version": "16.14.64",
4
4
  "description": "TypeScript definitions for react",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
6
6
  "license": "MIT",
@@ -164,6 +164,7 @@
164
164
  "@types/scheduler": "^0.16",
165
165
  "csstype": "^3.0.2"
166
166
  },
167
- "typesPublisherContentHash": "9ee43e9378a623bb5244872a4f50e6a046829282d24993368b8b14e5b9dd0663",
168
- "typeScriptVersion": "4.8"
167
+ "peerDependencies": {},
168
+ "typesPublisherContentHash": "5fb96ea2b146a13dbbc88fd4016b149bc4853c2131d642dc6284ab4eebb28248",
169
+ "typeScriptVersion": "5.1"
169
170
  }