npm lint.

This commit is contained in:
Miroslav Šedivý
2023-01-28 21:54:26 +01:00
parent 12623866b3
commit dfe8b8b57d
24 changed files with 48 additions and 53 deletions

View File

@ -3,13 +3,13 @@
// Type declarations for Keyboard API
// https://developer.mozilla.org/en-US/docs/Web/API/Keyboard_API
interface Keyboard {
lock(keyCodes?: array<string>): Promise<void>;
unlock(): void;
lock(keyCodes?: array<string>): Promise<void>
unlock(): void
}
interface NavigatorKeyboard {
// Only available in a secure context.
readonly keyboard?: Keyboard;
readonly keyboard?: Keyboard
}
interface Navigator extends NavigatorKeyboard {}