superapp-miniapp-invoke-native 1.10.0 → 1.10.1

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 -2
  2. package/package.json +1 -1
package/lib/main.d.ts CHANGED
@@ -331,14 +331,26 @@ declare interface MiniAppKongType {
331
331
  [key: string]: any;
332
332
  }
333
333
 
334
+ declare interface MiniAppLinkType {
335
+ url: string;
336
+ target: string;
337
+ title?: string;
338
+ name?: string;
339
+ }
340
+
334
341
  declare interface MiniAppParamsType {
335
342
  miniAppIds?: any[];
336
343
  }
337
344
 
338
- declare interface MiniAppType {
345
+ declare type MiniAppType = {
339
346
  miniApp: string;
347
+ link?: never;
340
348
  params?: string;
341
- }
349
+ } | {
350
+ miniApp?: never;
351
+ link: MiniAppLinkType;
352
+ params?: string;
353
+ };
342
354
 
343
355
  declare interface MiniAppVersionType {
344
356
  miniAppVersion: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "superapp-miniapp-invoke-native",
3
3
  "type": "module",
4
- "version": "1.10.0",
4
+ "version": "1.10.1",
5
5
  "description": "In Superapp, the encapsulation of calling Native interfaces by mini-programs.",
6
6
  "scripts": {
7
7
  "dev": "vite",