@types/react 18.0.23 → 18.0.25
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 +2 -2
- react/index.d.ts +8 -3
- react/package.json +7 -2
react/README.md
CHANGED
@@ -8,9 +8,9 @@ This package contains type definitions for React (http://facebook.github.io/reac
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Fri, 04 Nov 2022 11:02: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
|
|
15
15
|
# Credits
|
16
|
-
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [John Reilly](https://github.com/johnnyreilly), [Benoit Benezech](https://github.com/bbenezech), [Patricio Zavolinsky](https://github.com/pzavolinsky), [Eric Anderson](https://github.com/ericanderson), [Dovydas Navickas](https://github.com/DovydasNavickas), [Josh Rutherford](https://github.com/theruther4d), [Guilherme Hübner](https://github.com/guilhermehubner), [Ferdy Budhidharma](https://github.com/ferdaber), [Johann Rakotoharisoa](https://github.com/jrakotoharisoa), [Olivier Pascal](https://github.com/pascaloliv), [Martin Hochel](https://github.com/hotell), [Frank Li](https://github.com/franklixuefei), [Jessica Franco](https://github.com/Jessidhia), [Saransh Kataria](https://github.com/saranshkataria), [Kanitkorn Sujautra](https://github.com/lukyth), [Sebastian Silbermann](https://github.com/eps1lon), [Kyle Scully](https://github.com/zieka), [Cong Zhang](https://github.com/dancerphil), [Dimitri Mitropoulos](https://github.com/dimitropoulos), [JongChan Choi](https://github.com/disjukr), [Victor Magalhães](https://github.com/vhfmag), [Dale Tan](https://github.com/hellatan),
|
16
|
+
These definitions were written by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com), [John Reilly](https://github.com/johnnyreilly), [Benoit Benezech](https://github.com/bbenezech), [Patricio Zavolinsky](https://github.com/pzavolinsky), [Eric Anderson](https://github.com/ericanderson), [Dovydas Navickas](https://github.com/DovydasNavickas), [Josh Rutherford](https://github.com/theruther4d), [Guilherme Hübner](https://github.com/guilhermehubner), [Ferdy Budhidharma](https://github.com/ferdaber), [Johann Rakotoharisoa](https://github.com/jrakotoharisoa), [Olivier Pascal](https://github.com/pascaloliv), [Martin Hochel](https://github.com/hotell), [Frank Li](https://github.com/franklixuefei), [Jessica Franco](https://github.com/Jessidhia), [Saransh Kataria](https://github.com/saranshkataria), [Kanitkorn Sujautra](https://github.com/lukyth), [Sebastian Silbermann](https://github.com/eps1lon), [Kyle Scully](https://github.com/zieka), [Cong Zhang](https://github.com/dancerphil), [Dimitri Mitropoulos](https://github.com/dimitropoulos), [JongChan Choi](https://github.com/disjukr), [Victor Magalhães](https://github.com/vhfmag), [Dale Tan](https://github.com/hellatan), [Priyanshu Rav](https://github.com/priyanshurav), and [Dmitry Semigradsky](https://github.com/Semigradsky).
|
react/index.d.ts
CHANGED
@@ -26,6 +26,7 @@
|
|
26
26
|
// Victor Magalhães <https://github.com/vhfmag>
|
27
27
|
// Dale Tan <https://github.com/hellatan>
|
28
28
|
// Priyanshu Rav <https://github.com/priyanshurav>
|
29
|
+
// Dmitry Semigradsky <https://github.com/Semigradsky>
|
29
30
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
30
31
|
// TypeScript Version: 2.8
|
31
32
|
|
@@ -1249,6 +1250,8 @@ declare namespace React {
|
|
1249
1250
|
target: EventTarget & T;
|
1250
1251
|
}
|
1251
1252
|
|
1253
|
+
export type ModifierKey = "Alt" | "AltGraph" | "CapsLock" | "Control" | "Fn" | "FnLock" | "Hyper" | "Meta" | "NumLock" | "ScrollLock" | "Shift" | "Super" | "Symbol" | "SymbolLock";
|
1254
|
+
|
1252
1255
|
interface KeyboardEvent<T = Element> extends UIEvent<T, NativeKeyboardEvent> {
|
1253
1256
|
altKey: boolean;
|
1254
1257
|
/** @deprecated */
|
@@ -1258,7 +1261,7 @@ declare namespace React {
|
|
1258
1261
|
/**
|
1259
1262
|
* See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
|
1260
1263
|
*/
|
1261
|
-
getModifierState(key:
|
1264
|
+
getModifierState(key: ModifierKey): boolean;
|
1262
1265
|
/**
|
1263
1266
|
* See the [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#named-key-attribute-values). for possible values
|
1264
1267
|
*/
|
@@ -1284,7 +1287,7 @@ declare namespace React {
|
|
1284
1287
|
/**
|
1285
1288
|
* See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
|
1286
1289
|
*/
|
1287
|
-
getModifierState(key:
|
1290
|
+
getModifierState(key: ModifierKey): boolean;
|
1288
1291
|
metaKey: boolean;
|
1289
1292
|
movementX: number;
|
1290
1293
|
movementY: number;
|
@@ -1303,7 +1306,7 @@ declare namespace React {
|
|
1303
1306
|
/**
|
1304
1307
|
* See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
|
1305
1308
|
*/
|
1306
|
-
getModifierState(key:
|
1309
|
+
getModifierState(key: ModifierKey): boolean;
|
1307
1310
|
metaKey: boolean;
|
1308
1311
|
shiftKey: boolean;
|
1309
1312
|
targetTouches: TouchList;
|
@@ -1458,6 +1461,8 @@ declare namespace React {
|
|
1458
1461
|
onProgressCapture?: ReactEventHandler<T> | undefined;
|
1459
1462
|
onRateChange?: ReactEventHandler<T> | undefined;
|
1460
1463
|
onRateChangeCapture?: ReactEventHandler<T> | undefined;
|
1464
|
+
onResize?: ReactEventHandler<T> | undefined;
|
1465
|
+
onResizeCapture?: ReactEventHandler<T> | undefined;
|
1461
1466
|
onSeeked?: ReactEventHandler<T> | undefined;
|
1462
1467
|
onSeekedCapture?: ReactEventHandler<T> | undefined;
|
1463
1468
|
onSeeking?: ReactEventHandler<T> | undefined;
|
react/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/react",
|
3
|
-
"version": "18.0.
|
3
|
+
"version": "18.0.25",
|
4
4
|
"description": "TypeScript definitions for React",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react",
|
6
6
|
"license": "MIT",
|
@@ -131,6 +131,11 @@
|
|
131
131
|
"name": "Priyanshu Rav",
|
132
132
|
"url": "https://github.com/priyanshurav",
|
133
133
|
"githubUsername": "priyanshurav"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"name": "Dmitry Semigradsky",
|
137
|
+
"url": "https://github.com/Semigradsky",
|
138
|
+
"githubUsername": "Semigradsky"
|
134
139
|
}
|
135
140
|
],
|
136
141
|
"main": "",
|
@@ -146,7 +151,7 @@
|
|
146
151
|
"@types/scheduler": "*",
|
147
152
|
"csstype": "^3.0.2"
|
148
153
|
},
|
149
|
-
"typesPublisherContentHash": "
|
154
|
+
"typesPublisherContentHash": "6cd00f8577b69ce5aca92df5e4c905a4dd677b5469e03ed7b46e2d441fb1af0b",
|
150
155
|
"typeScriptVersion": "4.1",
|
151
156
|
"exports": {
|
152
157
|
".": {
|