From 6c379f9884f0d06d0baed170ac90f96a92bd6cb4 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 9 Jul 2025 15:23:13 -0700 Subject: [PATCH] Create type for easier checking against device status values. --- src/lib/wallets/ledger-wallet.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/wallets/ledger-wallet.ts b/src/lib/wallets/ledger-wallet.ts index d33b42b..ebb16fd 100644 --- a/src/lib/wallets/ledger-wallet.ts +++ b/src/lib/wallets/ledger-wallet.ts @@ -13,6 +13,8 @@ import { Entropy } from '#src/lib/entropy.js' import { Rpc } from '#src/lib/rpc.js' import { KeyPair, Wallet } from './wallet' +type DeviceStatus = 'DISCONNECTED' | 'PAIRED' | 'LOCKED' | 'BUSY' | 'CONNECTED' + interface LedgerResponse { status: string } -- 2.47.3