-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh: resolve @ts-expect-error issues (#58)
- Loading branch information
1 parent
2d6a274
commit 928b109
Showing
5 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { EventHandler } from "react"; | ||
|
||
declare global { | ||
interface Navigator { | ||
virtualKeyboard?: VirtualKeyboard; | ||
} | ||
|
||
/** | ||
* Represents the virtual keyboard API, which extends the browser's navigator object. | ||
* | ||
* Note: VirtualKeyboard is not natively supported by TypeScript. The implementation | ||
* provided here is based on the proposed specification available at | ||
* {@link https://w3c.github.io/virtual-keyboard/#dom-navigator-virtualkeyboard}. | ||
*/ | ||
interface VirtualKeyboard extends EventTarget { | ||
hide(): void | ||
show(): void; | ||
boundingRect: DOMRect; | ||
overlaysContent: boolean; | ||
ongeometrychange: EventHandler; | ||
} | ||
} |