3.5.1
0.61.0
both
no type errors
type errors on acknowledgePurchaseAndroid
and requestSubscription
. But maybe more.
emulator
running the latest version and then do your type checking
requestSubscription = (sku: string, oldSku: string, prorationMode: number)
Should be:
requestSubscription = (sku: string, oldSku?: string, prorationMode?: number)
and...
acknowledgePurchaseAndroid = (token: string, developerPayload: string)
Should be:
acknowledgePurchaseAndroid = (token: string, developerPayload?: string)
I guess there are more of these little things now since the index.d.ts
is gone and index.ts
does not yet reflect those types. Don't have the time to go through them all at this moment. Just letting you know the types should be looked at :-)
I'm facing the same problem, the fields oldSku
and prorationMode
of requestSubscription
should be optional
You guys are right. Sorry that I've missed this out. Today, I've just migrated our project to typescript
since there are so many issues related to typings. Now we only need to concentrate on ts
file and flow
and js
will be auto-generated.
I've released 3.5.2
for the fix.
Thanks a lot @hyochan
Thanks @hyochan for the fast response. Will try it out soon!
Most helpful comment
You guys are right. Sorry that I've missed this out. Today, I've just migrated our project to
typescript
since there are so many issues related to typings. Now we only need to concentrate onts
file andflow
andjs
will be auto-generated.I've released
3.5.2
for the fix.