From bafa364e88154dfa0a2370a85eb34f09332cd399 Mon Sep 17 00:00:00 2001 From: Scarlet <4585677+scarletcs@users.noreply.github.com> Date: Thu, 16 Nov 2023 12:24:29 +0000 Subject: [PATCH 1/3] fix getAudioRoutes definition --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 25b43da9..ee3588e2 100644 --- a/index.d.ts +++ b/index.d.ts @@ -222,7 +222,7 @@ declare module 'react-native-callkeep' { outgoing: boolean }[] | void> - static getAudioRoutes(): Promise + static getAudioRoutes(): Promise static setAudioRoute: (uuid: string, inputName: string) => Promise From c3b492de5e874131fdb7cc7f86d94d4f60abb8d9 Mon Sep 17 00:00:00 2001 From: Scarlet <4585677+scarletcs@users.noreply.github.com> Date: Thu, 16 Nov 2023 12:24:30 +0000 Subject: [PATCH 2/3] fix getAudioRoutes definition From 739ec8b651abec0ac4903a72c9cb5bf3597a75f9 Mon Sep 17 00:00:00 2001 From: Scarlet <4585677+scarletcs@users.noreply.github.com> Date: Fri, 1 Dec 2023 17:58:39 +0000 Subject: [PATCH 3/3] fix readme definition to use array --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index be61547f..d960d241 100644 --- a/README.md +++ b/README.md @@ -589,7 +589,7 @@ RNCallKeep.toggleAudioRouteSpeaker(uuid, true); Get the list of available audio routes. i.e. bluetooth, wired/ear-piece, speaker and phone. ```js -await RNCallKeep.getAudioRoutes(): AudioRoute; +await RNCallKeep.getAudioRoutes(): AudioRoute[]; ``` ```