From: Chris Duncan Date: Wed, 9 Jul 2025 22:23:13 +0000 (-0700) Subject: Create type for easier checking against device status values. X-Git-Tag: v0.10.5~74 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=6c379f9884f0d06d0baed170ac90f96a92bd6cb4;p=libnemo.git Create type for easier checking against device status values. --- 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 }