File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/@ionic-native/plugins/in-app-purchase-2 Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,13 @@ export interface IAPProductOptions {
7
7
type : string ;
8
8
}
9
9
10
+ export interface IRefeshResult {
11
+ cancelled ( fn : ( ) => void ) : void ;
12
+ failed ( fn : ( ) => void ) : void ;
13
+ completed ( fn : ( ) => void ) : void ;
14
+ finished ( fn : ( ) => void ) : void ;
15
+ }
16
+
10
17
export type IAPProducts = IAPProduct [ ] & {
11
18
/**
12
19
* Get product by ID
@@ -865,7 +872,9 @@ export class InAppPurchase2 extends IonicNativePlugin {
865
872
* and in the callback `product.finish()` should be called.
866
873
*/
867
874
@Cordova ( { sync : true } )
868
- refresh ( ) : void { }
875
+ refresh ( ) : IRefeshResult {
876
+ return ;
877
+ }
869
878
870
879
/** Lightweight method like refresh but do not relogin user */
871
880
@Cordova ( { sync : true } )
You can’t perform that action at this time.
0 commit comments