superapp-miniapp-invoke-native 1.9.3 → 1.9.5

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.
package/lib/main.d.ts CHANGED
@@ -117,6 +117,8 @@ declare class CommunicatePlugins implements CommunicatePluginsHookType {
117
117
  cancelNativeLoading(): Promise<void>;
118
118
  getMiniAppKong(miniAppKong: MiniAppKongType): Promise<MiniAppKongType | undefined>;
119
119
  getDeeplinkParams(sendDeepLinkListenerParams: SendDeepLinkListenerParamsType): void;
120
+ switchLanguage(sendSwitchLanguageParams: SendSwitchLanguageParamsType): void;
121
+ setupMiniApp(setupMiniAppParams: SetupMiniAppParamsType): void;
120
122
  }
121
123
 
122
124
  declare interface CommunicatePluginsHookType {
@@ -350,6 +352,12 @@ declare interface SendDeepLinkListenerParamsType {
350
352
  callBack?: PluginCallback;
351
353
  }
352
354
 
355
+ declare interface SendSwitchLanguageParamsType {
356
+ mounted: (fn: () => void) => void;
357
+ beforeUnmount: (fn: () => void) => void;
358
+ callBack?: PluginCallback;
359
+ }
360
+
353
361
  declare interface SetCountAssistBtnParamsType {
354
362
  mounted: (fn: () => void) => void;
355
363
  beforeUnmount: (fn: () => void) => void;
@@ -371,6 +379,12 @@ declare interface SetFabDataParamsType {
371
379
 
372
380
  declare type SetFabDataType = SetFabDataParamsType[];
373
381
 
382
+ declare interface SetupMiniAppParamsType {
383
+ mounted: (fn: () => void) => void;
384
+ beforeUnmount: (fn: () => void) => void;
385
+ callBack?: PluginCallback;
386
+ }
387
+
374
388
  declare interface SpecifiedPageType {
375
389
  callBack: (value: any) => void;
376
390
  }