mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 09:10:09 +00:00
MouseEvent correctly inherits UIEvent properties (#38774)
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent at time of writing shows that MouseEvent should share properties from UIEvent.
This commit is contained in:
4
types/react/index.d.ts
vendored
4
types/react/index.d.ts
vendored
@@ -1225,7 +1225,7 @@ declare namespace React {
|
||||
which: number;
|
||||
}
|
||||
|
||||
interface MouseEvent<T = Element, E = NativeMouseEvent> extends SyntheticEvent<T, E> {
|
||||
interface MouseEvent<T = Element, E = NativeMouseEvent> extends UIEvent<T, E> {
|
||||
altKey: boolean;
|
||||
button: number;
|
||||
buttons: number;
|
||||
@@ -1261,7 +1261,7 @@ declare namespace React {
|
||||
touches: TouchList;
|
||||
}
|
||||
|
||||
interface UIEvent<T = Element> extends SyntheticEvent<T, NativeUIEvent> {
|
||||
interface UIEvent<T = Element, E = NativeUIEvent> extends SyntheticEvent<T, E> {
|
||||
detail: number;
|
||||
view: AbstractView;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user