@momo-cloud/gami-sdk 0.0.35 → 0.0.36

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.
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from 'eventemitter3';
1
+ import { eventemitter3 } from 'eventemitter3';
2
2
 
3
3
  export declare const Calendar: CalendarAPI;
4
4
 
@@ -16,7 +16,7 @@ declare interface CalendarAPI {
16
16
  }): Promise<boolean>;
17
17
  }
18
18
 
19
- export declare const GameEvent: EventEmitter<string | symbol, any>;
19
+ export declare const GameEvent: eventemitter3<string | symbol, any>;
20
20
 
21
21
  declare const GamiSDK: {
22
22
  setServerTime: (value: number) => void;
@@ -143,6 +143,14 @@ declare const GamiSDK: {
143
143
  toast?: string;
144
144
  }) => Promise<unknown>;
145
145
  requestPlatformApi: (name: string, ...params: any[]) => Promise<unknown>;
146
+ saveImage: (base64: string) => Promise<unknown>;
147
+ getImage: (params: {
148
+ type?: "camera" | "album" | "photo" | "storage";
149
+ quality?: number;
150
+ maxWidth?: number;
151
+ maxHeight?: number;
152
+ allowEdit?: boolean;
153
+ }) => Promise<any>;
146
154
  listen: (name: string, callback: (args: any[]) => void) => void;
147
155
  listenShaking: ({ onShake }: {
148
156
  onShake: (data: any) => void;