iaphub / react-native-iaphub

The easiest way to implement IAP (In-app purchase) in your React Native app.
https://www.iaphub.com/
MIT License
328 stars 23 forks source link

Project converted to typescript #18

Closed centrual closed 4 years ago

centrual commented 4 years ago

Hello,

I tried to cover every method definitions. There is no usage difference between javascript and typescript version.

I didn't test the code. Please check it before merge.

npm run build command will build all files into dist folder. You can use npm publish command inside dist folder directly. Build command copies required files to dist folder automatically.

Have a great day!

iaphub commented 4 years ago

Hi @centrual,

That's an amazing PR! Unfortunately like I was saying you in our email exchange, we're not planning currently to convert the project to TypeScript. TypeScript definitions are fine if it can help TypeScript users but we're happy developing the product in ES6 for now. I sincerely hope it wasn't too much work to push a PR like that, I appreciate your commitment to the project.

Thanks