From fcb58d307018bbb44ff3944ed260370e190dfd52 Mon Sep 17 00:00:00 2001 From: Swaraj Chavan <96629527+Swaraj2004@users.noreply.github.com> Date: Mon, 30 Jun 2025 12:03:54 +0530 Subject: [PATCH] Fix TS2371 error in requestPairingCode type declaration (#3622) --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 46c9a0e..9ed85e6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -160,7 +160,7 @@ declare namespace WAWebJS { * @param showNotification - Show notification to pair on phone number * @returns {Promise} - Returns a pairing code in format "ABCDEFGH" */ - requestPairingCode(phoneNumber: string, showNotification = true): Promise + requestPairingCode(phoneNumber: string, showNotification?: boolean): Promise /** Force reset of connection state for the client */ resetState(): Promise