tridactyl.d.ts: Add focus with arguments to HTMLElement interface

This commit is contained in:
glacambre 2018-03-03 20:56:54 +01:00
parent 4981a3618e
commit 34d8363224
No known key found for this signature in database
GPG key ID: B9625DB1767553AC

6
src/tridactyl.d.ts vendored
View file

@ -16,6 +16,12 @@ interface Window {
eval(str: string): any
}
interface HTMLElement {
// Let's be future proof:
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus
focus(options: any): void
}
declare function exportFunction(
func: Function,
targetScope: object,