diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/context')
-rw-r--r-- | packages/taler-wallet-webextension/src/context/alert.ts | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/packages/taler-wallet-webextension/src/context/alert.ts b/packages/taler-wallet-webextension/src/context/alert.ts index 8527f30f6..da37a2768 100644 --- a/packages/taler-wallet-webextension/src/context/alert.ts +++ b/packages/taler-wallet-webextension/src/context/alert.ts @@ -49,13 +49,16 @@ type Type = { pushAlert: (n: Alert) => void; removeAlert: (n: Alert) => void; /** - * - * @param h - * @returns + * + * @param h + * @returns * @deprecated use safely */ pushAlertOnError: <T>(h: (p: T) => Promise<void>) => SafeHandler<T>; - safely: <T>(h: (p: T) => Promise<void>, error: TranslatedString) => SafeHandler<T>; + safely: <T>( + h: (p: T) => Promise<void>, + error: TranslatedString, + ) => SafeHandler<T>; }; const initial: Type = { @@ -112,7 +115,7 @@ export const AlertProvider = ({ children }: Props): VNode => { function safely<T>( handler: (p: T) => Promise<void>, - message: TranslatedString + message: TranslatedString, ): SafeHandler<T> { return withSafe(handler, (e) => { const a = alertFromError(message, e); |