ak1394 / react-native-tts

React Native Text-To-Speech library for Android and iOS
601 stars 154 forks source link

Conform return types between IOS and Android #139

Closed Gyran closed 4 years ago

Gyran commented 4 years ago

Not sure if this is wanted. Tried to make some typescript typings for this lib and sometimes there are different return types depending on if we are on IOS or Android. So this PR is just to try to make sure that the return types are compatible between the different platforms. Maybe we want reject if we try to call an Android only function in IOS? Not sure, but I made it so that they at least return the same type now.

ak1394 commented 4 years ago

I think it looks good, thanks!