superapp-miniapp-invoke-native 1.9.3 → 1.9.4
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 +7 -0
- package/lib/main.js +261 -226
- package/lib/main.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/main.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ 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;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
declare interface CommunicatePluginsHookType {
|
|
@@ -350,6 +351,12 @@ declare interface SendDeepLinkListenerParamsType {
|
|
|
350
351
|
callBack?: PluginCallback;
|
|
351
352
|
}
|
|
352
353
|
|
|
354
|
+
declare interface SendSwitchLanguageParamsType {
|
|
355
|
+
mounted: (fn: () => void) => void;
|
|
356
|
+
beforeUnmount: (fn: () => void) => void;
|
|
357
|
+
callBack?: PluginCallback;
|
|
358
|
+
}
|
|
359
|
+
|
|
353
360
|
declare interface SetCountAssistBtnParamsType {
|
|
354
361
|
mounted: (fn: () => void) => void;
|
|
355
362
|
beforeUnmount: (fn: () => void) => void;
|