superapp-miniapp-invoke-native 1.10.0 → 1.10.2

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
@@ -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;
@@ -423,7 +435,7 @@ declare interface PollingPluginsHandleType {
423
435
  }
424
436
 
425
437
  declare interface PrintParamsType {
426
- miniAppName?: string;
438
+ functionId: string;
427
439
  action?: string;
428
440
  copies?: number;
429
441
  printerName?: string;