mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
have KeyEvent extend KeyboardEvent (#13380)
Otherwise Typescript complains when I try to use e.preventDefault() and doesn't provide completion to other KeyboardEvent properties.
This commit is contained in:
Vendored
+1
-1
@@ -17,7 +17,7 @@ declare namespace keyboardjs {
|
||||
/**
|
||||
* Information and functions in the current callback.
|
||||
*/
|
||||
interface KeyEvent{
|
||||
interface KeyEvent extends KeyboardEvent {
|
||||
preventRepeat(): void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user