tsc: fix builds & fix type errors

This commit is contained in:
Rajeh Taher
2025-07-19 17:15:51 +03:00
parent 97dfccf9fe
commit 29f0ac83f8
7 changed files with 23 additions and 17 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ import { proto } from '../../WAProto'
import { DEFAULT_CACHE_TTLS, PROCESSABLE_HISTORY_TYPES } from '../Defaults'
import type {
BotListInfo,
CacheStore,
ChatModification,
ChatMutation,
LTHashState,
@@ -73,10 +74,10 @@ export const makeChatsSocket = (config: SocketConfig) => {
const placeholderResendCache =
config.placeholderResendCache ||
new NodeCache({
(new NodeCache<number>({
stdTTL: DEFAULT_CACHE_TTLS.MSG_RETRY, // 1 hour
useClones: false
})
}) as CacheStore)
if (!config.placeholderResendCache) {
config.placeholderResendCache = placeholderResendCache