@types/react 16.14.63 → 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 +1 -1
- react v16.14/global.d.ts +1 -0
- react v16.14/index.d.ts +7 -1
- react v16.14/package.json +3 -3
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: Wed,
|
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 v16.14/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 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?:
|
1402
|
+
onBeforeInput?: InputEventHandler<T> | undefined;
|
1397
1403
|
onBeforeInputCapture?: FormEventHandler<T> | undefined;
|
1398
1404
|
onInput?: FormEventHandler<T> | undefined;
|
1399
1405
|
onInputCapture?: FormEventHandler<T> | undefined;
|
react v16.14/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "16.14.
|
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",
|
@@ -165,6 +165,6 @@
|
|
165
165
|
"csstype": "^3.0.2"
|
166
166
|
},
|
167
167
|
"peerDependencies": {},
|
168
|
-
"typesPublisherContentHash": "
|
169
|
-
"typeScriptVersion": "5.
|
168
|
+
"typesPublisherContentHash": "5fb96ea2b146a13dbbc88fd4016b149bc4853c2131d642dc6284ab4eebb28248",
|
169
|
+
"typeScriptVersion": "5.1"
|
170
170
|
}
|