@ray-js/api 0.3.18-beta-6ebf9155 → 0.3.19-beta-a6eb801d

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 (109) hide show
  1. package/@types/api.d.ts +1 -1
  2. package/@types/api.extend.d.ts +8 -0
  3. package/lib/exitMiniProgram/index.d.ts +2 -1
  4. package/lib/exitMiniProgram/index.js +4 -2
  5. package/lib/exitMiniProgram/index.web.js +4 -2
  6. package/lib/getAppInfo/index.d.ts +2 -1
  7. package/lib/getAppInfo/index.js +4 -2
  8. package/lib/getAppInfo/index.web.js +4 -2
  9. package/lib/getEnterOptions/index.d.ts +2 -1
  10. package/lib/getEnterOptions/index.js +4 -2
  11. package/lib/getEnterOptions/index.web.js +4 -2
  12. package/lib/getEnterOptionsSync/index.d.ts +2 -1
  13. package/lib/getEnterOptionsSync/index.js +4 -2
  14. package/lib/getEnterOptionsSync/index.web.js +4 -2
  15. package/lib/getLangContent/index.d.ts +2 -1
  16. package/lib/getLangContent/index.js +4 -2
  17. package/lib/getLangContent/index.web.js +4 -2
  18. package/lib/getLangKey/index.d.ts +2 -1
  19. package/lib/getLangKey/index.js +4 -2
  20. package/lib/getLangKey/index.web.js +4 -2
  21. package/lib/getLaunchOptions/index.d.ts +2 -1
  22. package/lib/getLaunchOptions/index.js +4 -2
  23. package/lib/getLaunchOptions/index.web.js +4 -2
  24. package/lib/getLaunchOptionsSync/index.d.ts +3 -2
  25. package/lib/getLaunchOptionsSync/index.js +4 -2
  26. package/lib/getLaunchOptionsSync/index.web.js +4 -2
  27. package/lib/goDeviceAlarm/index.d.ts +2 -1
  28. package/lib/goDeviceAlarm/index.js +4 -2
  29. package/lib/goDeviceAlarm/index.web.js +4 -2
  30. package/lib/goDeviceDetail/index.d.ts +2 -1
  31. package/lib/goDeviceDetail/index.js +4 -2
  32. package/lib/goDeviceDetail/index.web.js +4 -2
  33. package/lib/hideHomeButton/index.d.ts +2 -1
  34. package/lib/hideHomeButton/index.js +4 -2
  35. package/lib/hideHomeButton/index.web.js +4 -2
  36. package/lib/hideNavigationBarLoading/index.d.ts +2 -1
  37. package/lib/hideNavigationBarLoading/index.js +4 -2
  38. package/lib/hideNavigationBarLoading/index.web.js +4 -2
  39. package/lib/hideTabBarRedDot/index.d.ts +2 -1
  40. package/lib/hideTabBarRedDot/index.js +4 -2
  41. package/lib/hideTabBarRedDot/index.web.js +4 -2
  42. package/lib/index.android.js +1 -1
  43. package/lib/index.d.ts +1 -0
  44. package/lib/index.ios.js +1 -1
  45. package/lib/index.js +2 -1
  46. package/lib/index.tuya.js +2 -1
  47. package/lib/index.web.js +2 -1
  48. package/lib/index.wechat.js +2 -1
  49. package/lib/navigateBack/index.d.ts +3 -3
  50. package/lib/navigateBack/index.js +5 -2
  51. package/lib/navigateBack/index.web.js +5 -2
  52. package/lib/navigateBackMiniProgram/index.d.ts +2 -1
  53. package/lib/navigateBackMiniProgram/index.js +4 -2
  54. package/lib/navigateBackMiniProgram/index.web.js +4 -2
  55. package/lib/navigateTo/index.d.ts +2 -3
  56. package/lib/navigateTo/index.js +5 -2
  57. package/lib/navigateTo/index.web.js +5 -2
  58. package/lib/navigateToMiniProgram/index.d.ts +2 -1
  59. package/lib/navigateToMiniProgram/index.js +4 -2
  60. package/lib/navigateToMiniProgram/index.web.js +4 -2
  61. package/lib/onRouterEvent/index.d.ts +2 -1
  62. package/lib/onRouterEvent/index.js +4 -2
  63. package/lib/onRouterEvent/index.web.js +4 -2
  64. package/lib/reLaunch/index.d.ts +2 -3
  65. package/lib/reLaunch/index.js +5 -2
  66. package/lib/reLaunch/index.web.js +5 -2
  67. package/lib/redirectTo/index.d.ts +2 -3
  68. package/lib/redirectTo/index.js +5 -2
  69. package/lib/redirectTo/index.web.js +5 -2
  70. package/lib/removeTabBarBadge/index.d.ts +2 -1
  71. package/lib/removeTabBarBadge/index.js +4 -2
  72. package/lib/removeTabBarBadge/index.web.js +4 -2
  73. package/lib/resizeImage/index.d.ts +2 -1
  74. package/lib/resizeImage/index.js +4 -2
  75. package/lib/resizeImage/index.web.js +4 -2
  76. package/lib/router/index.d.ts +2 -1
  77. package/lib/router/index.js +4 -2
  78. package/lib/router/index.web.js +4 -2
  79. package/lib/setNavigationBarColor/index.d.ts +3 -6
  80. package/lib/setNavigationBarColor/index.js +5 -2
  81. package/lib/setNavigationBarColor/index.web.js +5 -2
  82. package/lib/setNavigationBarTitle/index.d.ts +3 -5
  83. package/lib/setNavigationBarTitle/index.js +5 -2
  84. package/lib/setNavigationBarTitle/index.web.js +5 -2
  85. package/lib/setTabBarBadge/index.d.ts +2 -1
  86. package/lib/setTabBarBadge/index.js +4 -2
  87. package/lib/setTabBarBadge/index.web.js +4 -2
  88. package/lib/setTabBarItem/index.d.ts +2 -1
  89. package/lib/setTabBarItem/index.js +4 -2
  90. package/lib/setTabBarItem/index.web.js +4 -2
  91. package/lib/setTabBarStyle/index.d.ts +2 -1
  92. package/lib/setTabBarStyle/index.js +4 -2
  93. package/lib/setTabBarStyle/index.web.js +4 -2
  94. package/lib/showNavigationBarLoading/index.d.ts +2 -1
  95. package/lib/showNavigationBarLoading/index.js +4 -2
  96. package/lib/showNavigationBarLoading/index.web.js +4 -2
  97. package/lib/showTabBarRedDot/index.d.ts +2 -1
  98. package/lib/showTabBarRedDot/index.js +4 -2
  99. package/lib/showTabBarRedDot/index.web.js +4 -2
  100. package/lib/startPullDownRefresh/index.d.ts +2 -1
  101. package/lib/startPullDownRefresh/index.js +4 -2
  102. package/lib/startPullDownRefresh/index.web.js +4 -2
  103. package/lib/stopPullDownRefresh/index.d.ts +2 -1
  104. package/lib/stopPullDownRefresh/index.js +4 -2
  105. package/lib/stopPullDownRefresh/index.web.js +4 -2
  106. package/lib/switchTab/index.d.ts +3 -3
  107. package/lib/switchTab/index.js +5 -2
  108. package/lib/switchTab/index.web.js +5 -2
  109. package/package.json +9 -9
@@ -2,10 +2,13 @@ import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
3
  /// <reference path="../../@types/api.d.ts" />
4
4
  import router from '@ray-js/router';
5
- export default function () {
5
+
6
+ var navigateBack = function () {
6
7
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
7
8
  delta: 1
8
9
  };
9
10
  router.go(options.delta * -1);
10
11
  return Promise.resolve();
11
- }
12
+ };
13
+
14
+ export default navigateBack;
@@ -2,10 +2,13 @@ import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
3
  /// <reference path="../../@types/api.d.ts" />
4
4
  import router from '@ray-js/router';
5
- export default function () {
5
+
6
+ var navigateBack = function () {
6
7
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
7
8
  delta: 1
8
9
  };
9
10
  router.go(options.delta * -1);
10
11
  return Promise.resolve();
11
- }
12
+ };
13
+
14
+ export default navigateBack;
@@ -1,2 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (): void;
2
+ declare const navigateBackMiniProgram: typeof ty.navigateBackMiniProgram;
3
+ export default navigateBackMiniProgram;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var navigateBackMiniProgram = function () {
3
3
  console.warn('// TODO 暂未实现方法 navigateBackMiniProgram');
4
- }
4
+ };
5
+
6
+ export default navigateBackMiniProgram;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var navigateBackMiniProgram = function () {
3
3
  console.warn('// TODO 暂未实现方法 navigateBackMiniProgram');
4
- }
4
+ };
5
+
6
+ export default navigateBackMiniProgram;
@@ -1,4 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (options: {
3
- url: string;
4
- }): Promise<void>;
2
+ declare const navigateTo: typeof ty.navigateTo;
3
+ export default navigateTo;
@@ -2,7 +2,10 @@ import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
3
  /// <reference path="../../@types/api.d.ts" />
4
4
  import router from '@ray-js/router';
5
- export default function (options) {
5
+
6
+ var navigateTo = function (options) {
6
7
  router.push(options.url);
7
8
  return Promise.resolve();
8
- }
9
+ };
10
+
11
+ export default navigateTo;
@@ -2,7 +2,10 @@ import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
3
  /// <reference path="../../@types/api.d.ts" />
4
4
  import router from '@ray-js/router';
5
- export default function (options) {
5
+
6
+ var navigateTo = function (options) {
6
7
  router.push(options.url);
7
8
  return Promise.resolve();
8
- }
9
+ };
10
+
11
+ export default navigateTo;
@@ -1,2 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (): void;
2
+ declare const navigateToMiniProgram: typeof ty.navigateToMiniProgram;
3
+ export default navigateToMiniProgram;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var navigateToMiniProgram = function () {
3
3
  console.warn('// TODO 暂未实现方法 navigateToMiniProgram');
4
- }
4
+ };
5
+
6
+ export default navigateToMiniProgram;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var navigateToMiniProgram = function () {
3
3
  console.warn('// TODO 暂未实现方法 navigateToMiniProgram');
4
- }
4
+ };
5
+
6
+ export default navigateToMiniProgram;
@@ -1,2 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (): void;
2
+ declare const onRouterEvent: typeof ty.onRouterEvent;
3
+ export default onRouterEvent;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var onRouterEvent = function () {
3
3
  console.warn('// TODO 暂未实现方法 onRouterEvent');
4
- }
4
+ };
5
+
6
+ export default onRouterEvent;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var onRouterEvent = function () {
3
3
  console.warn('// TODO 暂未实现方法 onRouterEvent');
4
- }
4
+ };
5
+
6
+ export default onRouterEvent;
@@ -1,4 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (options: {
3
- url: string;
4
- }): Promise<void>;
2
+ declare const reLaunch: typeof ty.reLaunch;
3
+ export default reLaunch;
@@ -2,7 +2,10 @@ import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
3
  /// <reference path="../../@types/api.d.ts" />
4
4
  import router from '@ray-js/router';
5
- export default function (options) {
5
+
6
+ var reLaunch = function (options) {
6
7
  router.reload(options.url);
7
8
  return Promise.resolve();
8
- }
9
+ };
10
+
11
+ export default reLaunch;
@@ -2,7 +2,10 @@ import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
3
  /// <reference path="../../@types/api.d.ts" />
4
4
  import router from '@ray-js/router';
5
- export default function (options) {
5
+
6
+ var reLaunch = function (options) {
6
7
  router.reload(options.url);
7
8
  return Promise.resolve();
8
- }
9
+ };
10
+
11
+ export default reLaunch;
@@ -1,4 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (options: {
3
- url: string;
4
- }): Promise<void>;
2
+ declare const redirectTo: typeof ty.redirectTo;
3
+ export default redirectTo;
@@ -4,7 +4,10 @@ import "core-js/modules/es.object.to-string.js";
4
4
  import "core-js/modules/es.promise.js";
5
5
  /// <reference path="../../@types/api.d.ts" />
6
6
  import router from '@ray-js/router';
7
- export default function (options) {
7
+
8
+ var redirectTo = function (options) {
8
9
  router.replace(options.url);
9
10
  return Promise.resolve();
10
- }
11
+ };
12
+
13
+ export default redirectTo;
@@ -4,7 +4,10 @@ import "core-js/modules/es.object.to-string.js";
4
4
  import "core-js/modules/es.promise.js";
5
5
  /// <reference path="../../@types/api.d.ts" />
6
6
  import router from '@ray-js/router';
7
- export default function (options) {
7
+
8
+ var redirectTo = function (options) {
8
9
  router.replace(options.url);
9
10
  return Promise.resolve();
10
- }
11
+ };
12
+
13
+ export default redirectTo;
@@ -1,2 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (): void;
2
+ declare const removeTabBarBadge: typeof ty.removeTabBarBadge;
3
+ export default removeTabBarBadge;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var removeTabBarBadge = function () {
3
3
  console.warn('// TODO 暂未实现方法 removeTabBarBadge');
4
- }
4
+ };
5
+
6
+ export default removeTabBarBadge;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var removeTabBarBadge = function () {
3
3
  console.warn('// TODO 暂未实现方法 removeTabBarBadge');
4
- }
4
+ };
5
+
6
+ export default removeTabBarBadge;
@@ -1,2 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (): void;
2
+ declare const resizeImage: typeof ty.resizeImage;
3
+ export default resizeImage;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var resizeImage = function () {
3
3
  console.warn('// TODO 暂未实现方法 resizeImage');
4
- }
4
+ };
5
+
6
+ export default resizeImage;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var resizeImage = function () {
3
3
  console.warn('// TODO 暂未实现方法 resizeImage');
4
- }
4
+ };
5
+
6
+ export default resizeImage;
@@ -1,2 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (): void;
2
+ declare const router: typeof ty.router;
3
+ export default router;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var router = function () {
3
3
  console.warn('// TODO 暂未实现方法 router');
4
- }
4
+ };
5
+
6
+ export default router;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var router = function () {
3
3
  console.warn('// TODO 暂未实现方法 router');
4
- }
4
+ };
5
+
6
+ export default router;
@@ -1,7 +1,4 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- interface Options {
3
- frontColor: string;
4
- backgroundColor: string;
5
- }
6
- export default function setNavigationBarColor(options: Options): Promise<void>;
7
- export {};
2
+ /// <reference types="@tuya-miniapp/mini-kit" />
3
+ declare const _default: typeof ty.setNavigationBarColor;
4
+ export default _default;
@@ -1,8 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
+
3
4
  /// <reference path="../../@types/api.d.ts" />
4
- export default function setNavigationBarColor(options) {
5
+ var setNavigationBarColor = function (options) {
5
6
  var meta = document.querySelector('meta[name=theme-color]');
6
7
  meta && meta.setAttribute('content', options.backgroundColor);
7
8
  return Promise.resolve();
8
- }
9
+ };
10
+
11
+ export default setNavigationBarColor;
@@ -1,8 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
+
3
4
  /// <reference path="../../@types/api.d.ts" />
4
- export default function setNavigationBarColor(options) {
5
+ var setNavigationBarColor = function (options) {
5
6
  var meta = document.querySelector('meta[name=theme-color]');
6
7
  meta && meta.setAttribute('content', options.backgroundColor);
7
8
  return Promise.resolve();
8
- }
9
+ };
10
+
11
+ export default setNavigationBarColor;
@@ -1,6 +1,4 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- interface Options {
3
- title: string;
4
- }
5
- export default function setNavigationBarTitle(options: Options): Promise<void>;
6
- export {};
2
+ /// <reference types="@tuya-miniapp/mini-kit" />
3
+ declare const _default: typeof ty.setNavigationBarTitle;
4
+ export default _default;
@@ -1,8 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
+
3
4
  /// <reference path="../../@types/api.d.ts" />
4
- export default function setNavigationBarTitle(options) {
5
+ var setNavigationBarTitle = function (options) {
5
6
  var title = options.title;
6
7
  document.title = title;
7
8
  return Promise.resolve();
8
- }
9
+ };
10
+
11
+ export default setNavigationBarTitle;
@@ -1,8 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
+
3
4
  /// <reference path="../../@types/api.d.ts" />
4
- export default function setNavigationBarTitle(options) {
5
+ var setNavigationBarTitle = function (options) {
5
6
  var title = options.title;
6
7
  document.title = title;
7
8
  return Promise.resolve();
8
- }
9
+ };
10
+
11
+ export default setNavigationBarTitle;
@@ -1,2 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (): void;
2
+ declare const setTabBarBadge: typeof ty.setTabBarBadge;
3
+ export default setTabBarBadge;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var setTabBarBadge = function () {
3
3
  console.warn('// TODO 暂未实现方法 setTabBarBadge');
4
- }
4
+ };
5
+
6
+ export default setTabBarBadge;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var setTabBarBadge = function () {
3
3
  console.warn('// TODO 暂未实现方法 setTabBarBadge');
4
- }
4
+ };
5
+
6
+ export default setTabBarBadge;
@@ -1,2 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (): void;
2
+ declare const setTabBarItem: typeof ty.setTabBarItem;
3
+ export default setTabBarItem;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var setTabBarItem = function () {
3
3
  console.warn('// TODO 暂未实现方法 setTabBarItem');
4
- }
4
+ };
5
+
6
+ export default setTabBarItem;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var setTabBarItem = function () {
3
3
  console.warn('// TODO 暂未实现方法 setTabBarItem');
4
- }
4
+ };
5
+
6
+ export default setTabBarItem;
@@ -1,2 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (): void;
2
+ declare const setTabBarStyle: typeof ty.setTabBarStyle;
3
+ export default setTabBarStyle;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var setTabBarStyle = function () {
3
3
  console.warn('// TODO 暂未实现方法 setTabBarStyle');
4
- }
4
+ };
5
+
6
+ export default setTabBarStyle;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var setTabBarStyle = function () {
3
3
  console.warn('// TODO 暂未实现方法 setTabBarStyle');
4
- }
4
+ };
5
+
6
+ export default setTabBarStyle;
@@ -1,2 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (): void;
2
+ declare const showNavigationBarLoading: typeof ty.showNavigationBarLoading;
3
+ export default showNavigationBarLoading;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var showNavigationBarLoading = function () {
3
3
  console.warn('// TODO: 暂未实现');
4
- }
4
+ };
5
+
6
+ export default showNavigationBarLoading;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var showNavigationBarLoading = function () {
3
3
  console.warn('// TODO: 暂未实现');
4
- }
4
+ };
5
+
6
+ export default showNavigationBarLoading;
@@ -1,2 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (): void;
2
+ declare const showTabBarRedDot: typeof ty.showTabBarRedDot;
3
+ export default showTabBarRedDot;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var showTabBarRedDot = function () {
3
3
  console.warn('// TODO 暂未实现方法 showTabBarRedDot');
4
- }
4
+ };
5
+
6
+ export default showTabBarRedDot;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var showTabBarRedDot = function () {
3
3
  console.warn('// TODO 暂未实现方法 showTabBarRedDot');
4
- }
4
+ };
5
+
6
+ export default showTabBarRedDot;
@@ -1,2 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (): void;
2
+ declare const startPullDownRefresh: typeof ty.startPullDownRefresh;
3
+ export default startPullDownRefresh;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var startPullDownRefresh = function () {
3
3
  console.warn('// TODO 暂未实现方法 startPullDownRefresh');
4
- }
4
+ };
5
+
6
+ export default startPullDownRefresh;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var startPullDownRefresh = function () {
3
3
  console.warn('// TODO 暂未实现方法 startPullDownRefresh');
4
- }
4
+ };
5
+
6
+ export default startPullDownRefresh;
@@ -1,2 +1,3 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (): void;
2
+ declare const stopPullDownRefresh: typeof ty.stopPullDownRefresh;
3
+ export default stopPullDownRefresh;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var stopPullDownRefresh = function () {
3
3
  console.warn('// TODO 暂未实现方法 stopPullDownRefresh');
4
- }
4
+ };
5
+
6
+ export default stopPullDownRefresh;
@@ -1,4 +1,6 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function () {
2
+ var stopPullDownRefresh = function () {
3
3
  console.warn('// TODO 暂未实现方法 stopPullDownRefresh');
4
- }
4
+ };
5
+
6
+ export default stopPullDownRefresh;
@@ -1,4 +1,4 @@
1
1
  /// <reference path="../../@types/api.d.ts" />
2
- export default function (options: {
3
- url: string;
4
- }): Promise<void>;
2
+ /// <reference types="@tuya-miniapp/mini-kit" />
3
+ declare const _default: typeof ty.switchTab;
4
+ export default _default;
@@ -2,7 +2,10 @@ import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
3
  /// <reference path="../../@types/api.d.ts" />
4
4
  import router from '@ray-js/router';
5
- export default function (options) {
5
+
6
+ var switchTab = function (options) {
6
7
  router.push(options.url);
7
8
  return Promise.resolve();
8
- }
9
+ };
10
+
11
+ export default switchTab;
@@ -2,7 +2,10 @@ import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
3
  /// <reference path="../../@types/api.d.ts" />
4
4
  import router from '@ray-js/router';
5
- export default function (options) {
5
+
6
+ var switchTab = function (options) {
6
7
  router.push(options.url);
7
8
  return Promise.resolve();
8
- }
9
+ };
10
+
11
+ export default switchTab;