@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
28 lines • 660 B
TypeScript
export type SyncAction = {
type: "BACKGROUND_TICK";
reason: string;
} | {
type: "SET_SKIP_UNDER_PRIORITY";
priority: number;
} | {
type: "SYNC_ONE_ACCOUNT";
accountId: string;
priority: number;
reason?: string;
} | {
type: "SYNC_SOME_ACCOUNTS";
accountIds: string[];
priority: number;
reason: string;
} | {
type: "SYNC_ALL_ACCOUNTS";
priority: number;
reason: string;
};
export type SyncState = {
pending: boolean;
error: Error | null | undefined;
};
export type BridgeSyncState = Record<string, SyncState>;
export type Sync = (action: SyncAction) => void;
//# sourceMappingURL=types.d.ts.map