chore: make use of "msgRetryCounterMap" more explicit

This commit is contained in:
Adhiraj Singh
2022-05-01 11:44:51 +05:30
parent 4a8c6ed66d
commit 221b95050f
2 changed files with 12 additions and 3 deletions

View File

@@ -14,11 +14,15 @@ import { proto } from '../../WAProto'
import { AuthenticationState } from './Auth'
import { CommonSocketConfig } from './Socket'
export type MessageRetryMap = { [msgId: string]: number }
export type SocketConfig = CommonSocketConfig<AuthenticationState> & {
/** provide a cache to store a user's device list */
userDevicesCache?: NodeCache
/** map to store the retry counts for failed messages */
msgRetryCounterMap?: { [msgId: string]: number }
/**
* map to store the retry counts for failed messages;
* used to determine whether to retry a message or not */
msgRetryCounterMap?: MessageRetryMap
/** width for link preview images */
linkPreviewImageThumbnailWidth: number
/**