Fix TS2371 error in requestPairingCode type declaration (#3622)

This commit is contained in:
Swaraj Chavan 2025-06-30 12:03:54 +05:30 • committed by GitHub
commit fcb58d3070
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
index.d.ts vendored
View file

@ -160,7 +160,7 @@ declare namespace WAWebJS {
* @param showNotification - Show notification to pair on phone number
* @returns {Promise<string>} - Returns a pairing code in format "ABCDEFGH"
*/
requestPairingCode(phoneNumber: string, showNotification = true): Promise<string>
requestPairingCode(phoneNumber: string, showNotification?: boolean): Promise<string>
/** Force reset of connection state for the client */
resetState(): Promise<void>