From 3dd1047b085fa7795f322c5829f39208465bff13 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 29 Mar 2022 09:58:06 -0300 Subject: added react eslint and fix most of the warns --- packages/taler-wallet-webextension/src/platform/dev.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/taler-wallet-webextension/src/platform/dev.ts') diff --git a/packages/taler-wallet-webextension/src/platform/dev.ts b/packages/taler-wallet-webextension/src/platform/dev.ts index 87f542bc0..38fcf29f4 100644 --- a/packages/taler-wallet-webextension/src/platform/dev.ts +++ b/packages/taler-wallet-webextension/src/platform/dev.ts @@ -14,7 +14,7 @@ GNU Taler; see the file COPYING. If not, see */ -import { classifyTalerUri, CoreApiResponse, TalerUriType } from "@gnu-taler/taler-util"; +import { CoreApiResponse } from "@gnu-taler/taler-util"; import { MessageFromBackend, PlatformAPI } from "./api.js"; const frames = ["popup", "wallet"] @@ -30,7 +30,7 @@ const api: PlatformAPI = ({ }), notifyWhenAppIsReady: (fn: () => void) => { let total = frames.length - function waitAndNotify() { + function waitAndNotify(): void { total-- if (total < 1) { console.log('done') @@ -96,7 +96,7 @@ const api: PlatformAPI = ({ }) }, listenToWalletBackground: (onNewMessage: (m: MessageFromBackend) => void) => { - function listener(event: MessageEvent) { + function listener(event: MessageEvent): void { if (event.data.type !== 'notification') return onNewMessage(event.data.body) } @@ -115,7 +115,7 @@ const api: PlatformAPI = ({ window.parent.postMessage(message) return new Promise((res, rej) => { - function listener(event: MessageEvent) { + function listener(event: MessageEvent): void { if (event.data.type !== "response" || event.data.header.responseId !== replyMe) { return } -- cgit v1.2.3