From f82d9d90fd8b25a3df36c17d6050993f184d9a44 Mon Sep 17 00:00:00 2001 From: Jordan Kee Date: Wed, 26 Jul 2023 11:52:21 +0800 Subject: [PATCH] Lint --- packages/sado-connect/src/types.d.ts | 6 +++++- packages/sado-connect/src/utils/promise-with-timeout.ts | 8 +++++++- packages/sado-connect/src/utils/text-helper.ts | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/sado-connect/src/types.d.ts b/packages/sado-connect/src/types.d.ts index e1fe197f..573d9342 100644 --- a/packages/sado-connect/src/types.d.ts +++ b/packages/sado-connect/src/types.d.ts @@ -12,7 +12,11 @@ type Unisat = { satoshis: number, options: { feeRate: number } ) => Promise; - getBalance: () => Promise<{confirmed: number, total: number, unconfirmed: number}>; + getBalance: () => Promise<{ + confirmed: number; + total: number; + unconfirmed: number; + }>; }; declare interface Window { diff --git a/packages/sado-connect/src/utils/promise-with-timeout.ts b/packages/sado-connect/src/utils/promise-with-timeout.ts index 236fb027..07cf7cb3 100644 --- a/packages/sado-connect/src/utils/promise-with-timeout.ts +++ b/packages/sado-connect/src/utils/promise-with-timeout.ts @@ -12,5 +12,11 @@ export function promiseWithTimeout(promise, ms, message) { } export function unresponsiveExtensionHandler(promise, wallet) { - return promiseWithTimeout(promise, 5000, `No response from ${capitalizeFirstLetter(wallet)}. If you don't see a pop-up, you may need to reload your browser.`) + return promiseWithTimeout( + promise, + 5000, + `No response from ${capitalizeFirstLetter( + wallet + )}. If you don't see a pop-up, you may need to reload your browser.` + ); } diff --git a/packages/sado-connect/src/utils/text-helper.ts b/packages/sado-connect/src/utils/text-helper.ts index 3e2dfc64..c21993a5 100644 --- a/packages/sado-connect/src/utils/text-helper.ts +++ b/packages/sado-connect/src/utils/text-helper.ts @@ -14,4 +14,4 @@ export function TruncateMiddle( export function capitalizeFirstLetter(str: string): string { return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase(); -} \ No newline at end of file +}