The Node.js SDK re-exports the WAJS namespace for TypeScript. This reference describes types from WA-JS 4.8.5-rc.0 . For operations available on a connected Node.js client, see Whatsapp . For functions running inside WhatsApp Web, see the WA-JS browser API .
interface LruMediaStore { clear () : Promise < void > ; count () : Promise < number > ; del ( key : string ) : Promise < void > ; get ( key : string ) : Promise < ArrayBuffer | Uint8Array < ArrayBufferLike > > ; has ( key : string ) : Promise < boolean > ; put ( key : string , value : ArrayBuffer | Uint8Array < ArrayBufferLike > , ) : Promise < void > ; }
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/LruMediaStore.d.ts:16
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/LruMediaStore.d.ts:24
Methods
clear
Returns Promise < void >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/LruMediaStore.d.ts:20
count
Returns Promise < number >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/LruMediaStore.d.ts:21
del
del ( key : string ) : Promise < void >
Returns Promise < void >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/LruMediaStore.d.ts:19
get
get ( key : string ) : Promise < ArrayBuffer | Uint8Array < ArrayBufferLike > >
Returns Promise < ArrayBuffer | Uint8Array < ArrayBufferLike > >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/LruMediaStore.d.ts:17
has
has ( key : string ) : Promise < boolean >
Returns Promise < boolean >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/LruMediaStore.d.ts:22
put
put ( key : string , value : ArrayBuffer | Uint8Array < ArrayBufferLike > , ) : Promise < void >
Parameters
key : string
value : ArrayBuffer | Uint8Array < ArrayBufferLike >
Returns Promise < void >
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/LruMediaStore.d.ts:18