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[]; ``` ``` 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