superapp-miniapp-invoke-native 1.9.2 → 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 +14 -0
- package/lib/main.js +296 -226
- package/lib/main.umd.cjs +1 -1
- package/package.json +1 -1
package/lib/main.d.ts
CHANGED
|
@@ -116,6 +116,8 @@ declare class CommunicatePlugins implements CommunicatePluginsHookType {
|
|
|
116
116
|
showNativeLoading(): Promise<void>;
|
|
117
117
|
cancelNativeLoading(): Promise<void>;
|
|
118
118
|
getMiniAppKong(miniAppKong: MiniAppKongType): Promise<MiniAppKongType | undefined>;
|
|
119
|
+
getDeeplinkParams(sendDeepLinkListenerParams: SendDeepLinkListenerParamsType): void;
|
|
120
|
+
switchLanguage(sendSwitchLanguageParams: SendSwitchLanguageParamsType): void;
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
declare interface CommunicatePluginsHookType {
|
|
@@ -343,6 +345,18 @@ declare interface RedirectType {
|
|
|
343
345
|
[key: string]: string;
|
|
344
346
|
}
|
|
345
347
|
|
|
348
|
+
declare interface SendDeepLinkListenerParamsType {
|
|
349
|
+
mounted: (fn: () => void) => void;
|
|
350
|
+
beforeUnmount: (fn: () => void) => void;
|
|
351
|
+
callBack?: PluginCallback;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
declare interface SendSwitchLanguageParamsType {
|
|
355
|
+
mounted: (fn: () => void) => void;
|
|
356
|
+
beforeUnmount: (fn: () => void) => void;
|
|
357
|
+
callBack?: PluginCallback;
|
|
358
|
+
}
|
|
359
|
+
|
|
346
360
|
declare interface SetCountAssistBtnParamsType {
|
|
347
361
|
mounted: (fn: () => void) => void;
|
|
348
362
|
beforeUnmount: (fn: () => void) => void;
|