@tonder.io/ionic-lite-sdk 0.0.35-beta.20 → 0.0.35-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,7 +85,7 @@
85
85
  <workItem from="1725305433705" duration="21026000" />
86
86
  <workItem from="1725333899382" duration="2939000" />
87
87
  <workItem from="1725337022494" duration="3671000" />
88
- <workItem from="1725378545854" duration="13659000" />
88
+ <workItem from="1725378545854" duration="14313000" />
89
89
  </task>
90
90
  <servers />
91
91
  </component>
@@ -14,7 +14,7 @@ export declare class BaseInlineCheckout {
14
14
  mode?: "production" | "sandbox" | "stage" | "development" | undefined;
15
15
  apiKeyTonder: string;
16
16
  returnUrl?: string;
17
- callBack?: ((response: any) => void) | undefined;
17
+ callBack?: ((response: IStartCheckoutResponse | Record<string, any>) => void) | undefined;
18
18
  merchantData?: Business;
19
19
  abortController: AbortController;
20
20
  customer?: ICustomer | {
@@ -102,7 +102,7 @@ export interface IInlineCheckoutBaseOptions {
102
102
  signal?: AbortSignal;
103
103
  apiKey: string;
104
104
  returnUrl?: string;
105
- callBack?: (response: IStartCheckoutResponse | Record<string, any> | Object | {} | void) => void;
105
+ callBack?: (response: IStartCheckoutResponse | Record<string, any>) => void;
106
106
  }
107
107
  export interface IApiError {
108
108
  code: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonder.io/ionic-lite-sdk",
3
- "version": "0.0.35-beta.20",
3
+ "version": "0.0.35-beta.21",
4
4
  "description": "Tonder ionic lite SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,7 +31,7 @@ export class BaseInlineCheckout {
31
31
  mode?: "production" | "sandbox" | "stage" | "development" | undefined;
32
32
  apiKeyTonder: string;
33
33
  returnUrl?: string;
34
- callBack?: ((response: any) => void) | undefined;
34
+ callBack?: ((response: IStartCheckoutResponse | Record<string, any>) => void) | undefined;
35
35
  merchantData?: Business;
36
36
  abortController: AbortController;
37
37
 
@@ -108,7 +108,7 @@ export interface IInlineCheckoutBaseOptions {
108
108
  signal?: AbortSignal;
109
109
  apiKey: string;
110
110
  returnUrl?: string;
111
- callBack?: (response: IStartCheckoutResponse | Record<string, any> | Object | {} | void) => void;
111
+ callBack?: (response: IStartCheckoutResponse | Record<string, any>) => void;
112
112
  }
113
113
 
114
114