From 178489ffaae6ad256ca1536bc79e63354c72516f Mon Sep 17 00:00:00 2001 From: Bruno Sales Cardoso Date: Sun, 9 Oct 2022 15:45:08 +0100 Subject: [PATCH] fix(sms-retriever): update startWatching result type (#4309) * Updating the types to match what we get * Update index.ts --- src/@awesome-cordova-plugins/plugins/sms-retriever/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/@awesome-cordova-plugins/plugins/sms-retriever/index.ts b/src/@awesome-cordova-plugins/plugins/sms-retriever/index.ts index 247702f9..4a899aa9 100644 --- a/src/@awesome-cordova-plugins/plugins/sms-retriever/index.ts +++ b/src/@awesome-cordova-plugins/plugins/sms-retriever/index.ts @@ -41,7 +41,7 @@ export class SmsRetriever extends AwesomeCordovaNativePlugin { * @returns {Promise} Returns a promise that resolves when retrives SMS text or TIMEOUT after 5 min. */ @Cordova() - startWatching(): Promise { + startWatching(): Promise<{ Message: string }> { return; }