forked from Blendman974/faceclaw
Introduce oxlint, and fix lint warnings
This commit is contained in:
1 parent
cb6dddd120
commit
06146c2b08
89 files changed
+818
-469
No files matched your search
@@ -148,7 +148,7 @@ export function createMainPage(): Page {
|
||||
model.set('onPadTouch', touch(watchInput))
|
||||
model.set('onRingPadTouch', touch(ringInput))
|
||||
model.set('onSyntheticMicTap', () => controller.startVoiceInput())
|
||||
model.set('onKeyboardTap', () => { void controller.typeIntoApp() })
|
||||
model.set('onKeyboardTap', () => { controller.typeIntoApp() })
|
||||
mirror.on('touch', touch(mirrorInput))
|
||||
const cancelGestures = () => { watchInput.cancel(); ringInput.cancel(); mirrorInput.cancel() }
|
||||
model.on('propertyChange', (args: PropertyChangeData) => {
|
||||
|
||||
@@ -55,7 +55,7 @@ export class OnboardingFlashViewModel extends Observable {
|
||||
private promptBattery: FlashPromptBattery | null = null;
|
||||
private flasher: FirmwareFlasher | null = null;
|
||||
private flasherUnsubscribers: Array<() => void> = [];
|
||||
private retryAction: () => void = () => this.beginPrompt();
|
||||
private retryAction: () => void | Promise<void> = () => this.beginPrompt();
|
||||
|
||||
constructor(options?: { mode?: FlashMode; fromOnboarding?: boolean; autoStart?: boolean }) {
|
||||
super();
|
||||
@@ -211,7 +211,7 @@ export class OnboardingFlashViewModel extends Observable {
|
||||
this.finish();
|
||||
return;
|
||||
case "error":
|
||||
this.retryAction();
|
||||
void this.retryAction();
|
||||
return;
|
||||
default:
|
||||
return;
|
||||
@@ -569,7 +569,7 @@ export class OnboardingFlashViewModel extends Observable {
|
||||
});
|
||||
}
|
||||
|
||||
private toError(message: string, retry: () => void, headline = "Something Went Wrong"): void {
|
||||
private toError(message: string, retry: () => void | Promise<void>, headline = "Something Went Wrong"): void {
|
||||
this.retryAction = retry;
|
||||
this.status = message;
|
||||
this.setPhase("error");
|
||||
|
||||
Reference in new issue
Block a user