pushandplay / cordova-plugin-apprate

This plugin provide the "rate this app" functionality into your Cordova/Phonegap application
Apache License 2.0
299 stars 193 forks source link

Error in reviewType #315

Open VaneGaraje opened 3 years ago

VaneGaraje commented 3 years ago

Hello, i have problem in the field reviewType, when assign a value to ios or android i see this error:

Type '"InAppReview"' is not assignable to type 'AppRateReviewTypeIos'.ts(2322) index.d.ts(64, 9): The expected type comes from property 'ios' which is declared here on type '{ ios?: AppRateReviewTypeIos; android?: AppRateReviewTypeAndroid; }'

Can you help me?

Epameinondas-Theodoropoulos commented 2 years ago
  reviewType: {
    ios: AppRateReviewTypeIos.AppStoreReview,
    android: AppRateReviewTypeAndroid.InAppBrowser
  }

this is the right way to declare it