-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move types for ledger live app to a separate file
- Loading branch information
1 parent
404d3c9
commit 10715fd
Showing
4 changed files
with
16 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./ledger-live-app" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Account, WalletAPIClient } from "@ledgerhq/wallet-api-client" | ||
|
||
type UseRequestAccount = { | ||
pending: boolean | ||
account: Account | null | ||
error: unknown | ||
} | ||
|
||
type RequestAccountParams = Parameters<WalletAPIClient["account"]["request"]> | ||
|
||
export type UseRequestAccountReturn = { | ||
requestAccount: (...params: RequestAccountParams) => Promise<void> | ||
} & UseRequestAccount |