mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add makeCacheableSignalKeyStore util
This commit is contained in:
@@ -69,6 +69,8 @@ type Awaitable<T> = T | Promise<T>
|
||||
export type SignalKeyStore = {
|
||||
get<T extends keyof SignalDataTypeMap>(type: T, ids: string[]): Awaitable<{ [id: string]: SignalDataTypeMap[T] }>
|
||||
set(data: SignalDataSet): Awaitable<void>
|
||||
/** clear all the data in the store */
|
||||
clear?(): Awaitable<void>
|
||||
}
|
||||
|
||||
export type SignalKeyStoreWithTransaction = SignalKeyStore & {
|
||||
|
||||
Reference in New Issue
Block a user