feat: add retry capability to SignalKeyStore

This commit is contained in:
Adhiraj Singh
2022-05-22 20:52:21 +05:30
parent c5d488f1c6
commit a8e209705a
5 changed files with 42 additions and 16 deletions

View File

@@ -72,6 +72,11 @@ export type SignalKeyStoreWithTransaction = SignalKeyStore & {
prefetch<T extends keyof SignalDataTypeMap>(type: T, ids: string[]): Promise<void>
}
export type TransactionCapabilityOptions = {
maxCommitRetries: number
delayBetweenTriesMs: number
}
export type SignalAuthState = {
creds: SignalCreds
keys: SignalKeyStore