@types/react 17.0.85 → 17.0.86
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 v17.0/README.md +1 -1
- react v17.0/global.d.ts +1 -0
- react v17.0/index.d.ts +7 -1
- react v17.0/package.json +3 -3
react v17.0/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/v17.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
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
|
react v17.0/global.d.ts
CHANGED
@@ -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 v17.0/index.d.ts
CHANGED
@@ -9,6 +9,7 @@ type NativeClipboardEvent = ClipboardEvent;
|
|
9
9
|
type NativeCompositionEvent = CompositionEvent;
|
10
10
|
type NativeDragEvent = DragEvent;
|
11
11
|
type NativeFocusEvent = FocusEvent;
|
12
|
+
type NativeInputEvent = InputEvent;
|
12
13
|
type NativeKeyboardEvent = KeyboardEvent;
|
13
14
|
type NativeMouseEvent = MouseEvent;
|
14
15
|
type NativeTouchEvent = TouchEvent;
|
@@ -1201,6 +1202,10 @@ declare namespace React {
|
|
1201
1202
|
target: EventTarget & T;
|
1202
1203
|
}
|
1203
1204
|
|
1205
|
+
interface InputEvent<T = Element> extends SyntheticEvent<T, NativeInputEvent> {
|
1206
|
+
data: string;
|
1207
|
+
}
|
1208
|
+
|
1204
1209
|
export type ModifierKey =
|
1205
1210
|
| "Alt"
|
1206
1211
|
| "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?:
|
1402
|
+
onBeforeInput?: InputEventHandler<T> | undefined;
|
1397
1403
|
onBeforeInputCapture?: FormEventHandler<T> | undefined;
|
1398
1404
|
onInput?: FormEventHandler<T> | undefined;
|
1399
1405
|
onInputCapture?: FormEventHandler<T> | undefined;
|
react v17.0/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "17.0.
|
3
|
+
"version": "17.0.86",
|
4
4
|
"description": "TypeScript definitions for react",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -170,6 +170,6 @@
|
|
170
170
|
"csstype": "^3.0.2"
|
171
171
|
},
|
172
172
|
"peerDependencies": {},
|
173
|
-
"typesPublisherContentHash": "
|
174
|
-
"typeScriptVersion": "5.
|
173
|
+
"typesPublisherContentHash": "ff918e46db782f768a0577fda8f638a348a5f3004de575ab757ff0144723e0d9",
|
174
|
+
"typeScriptVersion": "5.1"
|
175
175
|
}
|