-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cache): add type to cache and slice (#6222)
- Loading branch information
1 parent
e6e9daa
commit a7e2647
Showing
5 changed files
with
44 additions
and
20 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
23 changes: 23 additions & 0 deletions
23
packages/blockchain-wallet-v4-frontend/src/data/cache/types.ts
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,23 @@ | ||
export type CacheType = { | ||
announcements: Announcement | ||
channelChannelId: string | undefined | ||
channelPhonePubkey: string | undefined | ||
channelPrivKey: string | undefined | ||
exchangeEmail: string | undefined | ||
exchangeWalletGuid: string | undefined | ||
guidStored: string | undefined | ||
hasCloudBackup: boolean | undefined | ||
lastEmail: string | undefined | ||
lastGuid: string | undefined | ||
lastLogoutTimestamp: number | undefined | ||
lastUnusedAmounts: UnusedAmmounts | ||
mobileConnected: boolean | undefined | ||
noActionRequiredSweep: ActionSweep | undefined | ||
unifiedAccount: boolean | undefined | ||
} | ||
|
||
type Announcement = { [keyof: string]: { collapsed?: boolean; dismissed: boolean } } | ||
|
||
type UnusedAmmounts = { [keyof: string]: string } | ||
|
||
type ActionSweep = { guid: string; seen: boolean } |
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