feat: narrower definition of cachestore

This commit is contained in:
Adhiraj Singh
2023-02-21 11:56:27 +05:30
parent 30328eebe1
commit 79aa2e5176
3 changed files with 22 additions and 10 deletions

View File

@@ -6,6 +6,7 @@ import type { URL } from 'url'
import { proto } from '../../WAProto'
import { MEDIA_HKDF_KEY_MAPPING } from '../Defaults'
import type { GroupMetadata } from './GroupMetadata'
import { CacheStore } from './Socket'
// export the WAMessage Prototypes
export { proto as WAProto }
@@ -202,7 +203,7 @@ export type MediaGenerationOptions = {
mediaTypeOverride?: MediaType
upload: WAMediaUploadFunction
/** cache media so it does not have to be uploaded again */
mediaCache?: NodeCache
mediaCache?: CacheStore
mediaUploadTimeoutMs?: number