superapp-miniapp-invoke-native 1.0.45 → 1.0.46

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.
Files changed (2) hide show
  1. package/lib/main.d.ts +14 -1
  2. package/package.json +1 -1
package/lib/main.d.ts CHANGED
@@ -77,7 +77,7 @@ declare class NativeApi
77
77
  ) => void;
78
78
  };
79
79
  homeHandle(cb: PluginCallback): void;
80
- setFabHandle(data: any): void;
80
+ setFabHandle(data: SetFabDataType): void;
81
81
  }
82
82
 
83
83
  declare interface NativeAppInfoConfigType {
@@ -110,6 +110,19 @@ declare interface registerBackBtnParamsType {
110
110
  onUnmounted: (fn: () => void) => void;
111
111
  }
112
112
 
113
+ declare interface SetFabDataParamsType {
114
+ fun: (value?: any) => void;
115
+ id: string;
116
+ name: string;
117
+ title: string;
118
+ icon: string;
119
+ [key: string]: any;
120
+ }
121
+
122
+ declare interface SetFabDataType {
123
+ setFabData: SetFabDataParamsType[];
124
+ }
125
+
113
126
  declare interface SpecifiedPageType {
114
127
  cb: (params: any) => void;
115
128
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "superapp-miniapp-invoke-native",
3
3
  "type": "module",
4
- "version": "1.0.45",
4
+ "version": "1.0.46",
5
5
  "description": "Superapp中,小程序调用Native 接口的封装,如OSP项目中,需要调用Native的相机扫描,镭射扫描,获取RBAC的数据等",
6
6
  "scripts": {
7
7
  "dev": "vite",