@ray-js/api 0.3.15-beta-720ccfd3 → 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 (126) hide show
  1. package/@types/api.d.ts +1 -0
  2. package/@types/api.extend.d.ts +29 -0
  3. package/lib/exitMiniProgram/index.d.ts +3 -1
  4. package/lib/exitMiniProgram/index.js +5 -2
  5. package/lib/exitMiniProgram/index.web.js +5 -2
  6. package/lib/getAppInfo/index.d.ts +3 -1
  7. package/lib/getAppInfo/index.js +5 -2
  8. package/lib/getAppInfo/index.web.js +5 -2
  9. package/lib/getEnterOptions/index.d.ts +3 -1
  10. package/lib/getEnterOptions/index.js +5 -2
  11. package/lib/getEnterOptions/index.web.js +5 -2
  12. package/lib/getEnterOptionsSync/index.d.ts +3 -1
  13. package/lib/getEnterOptionsSync/index.js +5 -2
  14. package/lib/getEnterOptionsSync/index.web.js +5 -2
  15. package/lib/getLangContent/index.d.ts +3 -1
  16. package/lib/getLangContent/index.js +5 -2
  17. package/lib/getLangContent/index.web.js +5 -2
  18. package/lib/getLangKey/index.d.ts +3 -1
  19. package/lib/getLangKey/index.js +5 -2
  20. package/lib/getLangKey/index.web.js +5 -2
  21. package/lib/getLaunchOptions/index.d.ts +3 -1
  22. package/lib/getLaunchOptions/index.js +5 -2
  23. package/lib/getLaunchOptions/index.web.js +5 -2
  24. package/lib/getLaunchOptionsSync/index.d.ts +4 -2
  25. package/lib/getLaunchOptionsSync/index.js +5 -2
  26. package/lib/getLaunchOptionsSync/index.web.js +5 -2
  27. package/lib/goDeviceAlarm/index.d.ts +3 -1
  28. package/lib/goDeviceAlarm/index.js +5 -2
  29. package/lib/goDeviceAlarm/index.web.js +5 -2
  30. package/lib/goDeviceDetail/index.d.ts +3 -1
  31. package/lib/goDeviceDetail/index.js +5 -2
  32. package/lib/goDeviceDetail/index.web.js +5 -2
  33. package/lib/hideHomeButton/index.d.ts +3 -1
  34. package/lib/hideHomeButton/index.js +5 -2
  35. package/lib/hideHomeButton/index.web.js +5 -2
  36. package/lib/hideNavigationBarLoading/index.d.ts +3 -1
  37. package/lib/hideNavigationBarLoading/index.js +5 -2
  38. package/lib/hideNavigationBarLoading/index.web.js +5 -2
  39. package/lib/hideTabBar/index.d.ts +1 -0
  40. package/lib/hideTabBar/index.js +1 -0
  41. package/lib/hideTabBar/index.web.js +1 -0
  42. package/lib/hideTabBarRedDot/index.d.ts +3 -1
  43. package/lib/hideTabBarRedDot/index.js +5 -2
  44. package/lib/hideTabBarRedDot/index.web.js +5 -2
  45. package/lib/index.android.js +1 -1
  46. package/lib/index.d.ts +2 -0
  47. package/lib/index.ios.js +1 -1
  48. package/lib/index.js +3 -1
  49. package/lib/index.tuya.js +3 -1
  50. package/lib/index.web.js +3 -1
  51. package/lib/index.wechat.js +3 -1
  52. package/lib/navigateBack/index.d.ts +4 -3
  53. package/lib/navigateBack/index.js +6 -2
  54. package/lib/navigateBack/index.web.js +6 -2
  55. package/lib/navigateBackMiniProgram/index.d.ts +3 -1
  56. package/lib/navigateBackMiniProgram/index.js +5 -2
  57. package/lib/navigateBackMiniProgram/index.web.js +5 -2
  58. package/lib/navigateTo/index.d.ts +3 -3
  59. package/lib/navigateTo/index.js +6 -2
  60. package/lib/navigateTo/index.web.js +6 -2
  61. package/lib/navigateToMiniProgram/index.d.ts +3 -1
  62. package/lib/navigateToMiniProgram/index.js +5 -2
  63. package/lib/navigateToMiniProgram/index.web.js +5 -2
  64. package/lib/onRouterEvent/index.d.ts +3 -1
  65. package/lib/onRouterEvent/index.js +5 -2
  66. package/lib/onRouterEvent/index.web.js +5 -2
  67. package/lib/reLaunch/index.d.ts +3 -3
  68. package/lib/reLaunch/index.js +6 -2
  69. package/lib/reLaunch/index.web.js +6 -2
  70. package/lib/redirectTo/index.d.ts +3 -3
  71. package/lib/redirectTo/index.js +6 -2
  72. package/lib/redirectTo/index.web.js +6 -2
  73. package/lib/removeTabBarBadge/index.d.ts +3 -1
  74. package/lib/removeTabBarBadge/index.js +5 -2
  75. package/lib/removeTabBarBadge/index.web.js +5 -2
  76. package/lib/requestCloud/index.android.js +1 -0
  77. package/lib/requestCloud/index.d.ts +3 -0
  78. package/lib/requestCloud/index.ios.js +1 -0
  79. package/lib/requestCloud/index.js +6 -0
  80. package/lib/requestCloud/index.md +18 -0
  81. package/lib/requestCloud/index.native.d.ts +1 -0
  82. package/lib/requestCloud/index.tuya.d.ts +1 -0
  83. package/lib/requestCloud/index.tuya.js +8 -0
  84. package/lib/requestCloud/index.web.js +6 -0
  85. package/lib/requestCloud/index.wechat.d.ts +1 -0
  86. package/lib/requestCloud/index.wechat.js +8 -0
  87. package/lib/resizeImage/index.d.ts +3 -1
  88. package/lib/resizeImage/index.js +5 -2
  89. package/lib/resizeImage/index.web.js +5 -2
  90. package/lib/router/index.d.ts +3 -1
  91. package/lib/router/index.js +5 -2
  92. package/lib/router/index.web.js +5 -2
  93. package/lib/setNavigationBarColor/index.d.ts +4 -6
  94. package/lib/setNavigationBarColor/index.js +6 -2
  95. package/lib/setNavigationBarColor/index.web.js +6 -2
  96. package/lib/setNavigationBarTitle/index.d.ts +4 -5
  97. package/lib/setNavigationBarTitle/index.js +6 -2
  98. package/lib/setNavigationBarTitle/index.web.js +6 -2
  99. package/lib/setTabBarBadge/index.d.ts +3 -1
  100. package/lib/setTabBarBadge/index.js +5 -2
  101. package/lib/setTabBarBadge/index.web.js +5 -2
  102. package/lib/setTabBarItem/index.d.ts +3 -1
  103. package/lib/setTabBarItem/index.js +5 -2
  104. package/lib/setTabBarItem/index.web.js +5 -2
  105. package/lib/setTabBarStyle/index.d.ts +3 -1
  106. package/lib/setTabBarStyle/index.js +5 -2
  107. package/lib/setTabBarStyle/index.web.js +5 -2
  108. package/lib/showNavigationBarLoading/index.d.ts +3 -1
  109. package/lib/showNavigationBarLoading/index.js +5 -2
  110. package/lib/showNavigationBarLoading/index.web.js +5 -2
  111. package/lib/showTabBar/index.d.ts +1 -0
  112. package/lib/showTabBar/index.js +1 -0
  113. package/lib/showTabBar/index.web.js +1 -0
  114. package/lib/showTabBarRedDot/index.d.ts +3 -1
  115. package/lib/showTabBarRedDot/index.js +5 -2
  116. package/lib/showTabBarRedDot/index.web.js +5 -2
  117. package/lib/startPullDownRefresh/index.d.ts +3 -1
  118. package/lib/startPullDownRefresh/index.js +5 -2
  119. package/lib/startPullDownRefresh/index.web.js +5 -2
  120. package/lib/stopPullDownRefresh/index.d.ts +3 -1
  121. package/lib/stopPullDownRefresh/index.js +5 -2
  122. package/lib/stopPullDownRefresh/index.web.js +5 -2
  123. package/lib/switchTab/index.d.ts +4 -3
  124. package/lib/switchTab/index.js +6 -2
  125. package/lib/switchTab/index.web.js +6 -2
  126. package/package.json +9 -9
package/lib/index.tuya.js CHANGED
@@ -5,7 +5,8 @@ export { default as getSystemInfoSync } from './getSystemInfoSync';
5
5
  export { default as getSystemInfo } from './getSystemInfo';
6
6
  export { default as getI18nInfo } from './getI18nInfo';
7
7
  export { default as getCurrentPages } from './getCurrentPages';
8
- export { default as getApp } from './getApp'; // DOM
8
+ export { default as getApp } from './getApp';
9
+ export { default as getAppInfo } from './getAppInfo'; // DOM
9
10
 
10
11
  export { default as getElementById } from './getElementById';
11
12
  export { default as getBoundingClientRect } from './getBoundingClientRect'; // tabBar
@@ -76,4 +77,5 @@ export { default as onBluetoothAdapterStateChange } from './onBluetoothAdapterSt
76
77
  export { default as readFile } from './readFile';
77
78
  export { default as readFileSync } from './readFileSync';
78
79
  export { default as request } from './request';
80
+ export { default as requestCloud } from './requestCloud';
79
81
  export * from './device-kit';
package/lib/index.web.js CHANGED
@@ -5,7 +5,8 @@ export { default as getSystemInfoSync } from './getSystemInfoSync';
5
5
  export { default as getSystemInfo } from './getSystemInfo';
6
6
  export { default as getI18nInfo } from './getI18nInfo';
7
7
  export { default as getCurrentPages } from './getCurrentPages';
8
- export { default as getApp } from './getApp'; // DOM
8
+ export { default as getApp } from './getApp';
9
+ export { default as getAppInfo } from './getAppInfo'; // DOM
9
10
 
10
11
  export { default as getElementById } from './getElementById';
11
12
  export { default as getBoundingClientRect } from './getBoundingClientRect'; // tabBar
@@ -76,4 +77,5 @@ export { default as onBluetoothAdapterStateChange } from './onBluetoothAdapterSt
76
77
  export { default as readFile } from './readFile';
77
78
  export { default as readFileSync } from './readFileSync';
78
79
  export { default as request } from './request';
80
+ export { default as requestCloud } from './requestCloud';
79
81
  export * from './device-kit';
@@ -5,7 +5,8 @@ export { default as getSystemInfoSync } from './getSystemInfoSync';
5
5
  export { default as getSystemInfo } from './getSystemInfo';
6
6
  export { default as getI18nInfo } from './getI18nInfo';
7
7
  export { default as getCurrentPages } from './getCurrentPages';
8
- export { default as getApp } from './getApp'; // DOM
8
+ export { default as getApp } from './getApp';
9
+ export { default as getAppInfo } from './getAppInfo'; // DOM
9
10
 
10
11
  export { default as getElementById } from './getElementById';
11
12
  export { default as getBoundingClientRect } from './getBoundingClientRect'; // tabBar
@@ -76,4 +77,5 @@ export { default as onBluetoothAdapterStateChange } from './onBluetoothAdapterSt
76
77
  export { default as readFile } from './readFile';
77
78
  export { default as readFileSync } from './readFileSync';
78
79
  export { default as request } from './request';
80
+ export { default as requestCloud } from './requestCloud';
79
81
  export * from './device-kit';
@@ -1,3 +1,4 @@
1
- export default function (options?: {
2
- delta: number;
3
- }): Promise<void>;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ /// <reference types="@tuya-miniapp/mini-kit" />
3
+ declare const _default: typeof ty.navigateBack;
4
+ export default _default;
@@ -1,10 +1,14 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
+ /// <reference path="../../@types/api.d.ts" />
3
4
  import router from '@ray-js/router';
4
- export default function () {
5
+
6
+ var navigateBack = function () {
5
7
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
6
8
  delta: 1
7
9
  };
8
10
  router.go(options.delta * -1);
9
11
  return Promise.resolve();
10
- }
12
+ };
13
+
14
+ export default navigateBack;
@@ -1,10 +1,14 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
+ /// <reference path="../../@types/api.d.ts" />
3
4
  import router from '@ray-js/router';
4
- export default function () {
5
+
6
+ var navigateBack = function () {
5
7
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
6
8
  delta: 1
7
9
  };
8
10
  router.go(options.delta * -1);
9
11
  return Promise.resolve();
10
- }
12
+ };
13
+
14
+ export default navigateBack;
@@ -1 +1,3 @@
1
- export default function (): void;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const navigateBackMiniProgram: typeof ty.navigateBackMiniProgram;
3
+ export default navigateBackMiniProgram;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var navigateBackMiniProgram = function () {
2
3
  console.warn('// TODO 暂未实现方法 navigateBackMiniProgram');
3
- }
4
+ };
5
+
6
+ export default navigateBackMiniProgram;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var navigateBackMiniProgram = function () {
2
3
  console.warn('// TODO 暂未实现方法 navigateBackMiniProgram');
3
- }
4
+ };
5
+
6
+ export default navigateBackMiniProgram;
@@ -1,3 +1,3 @@
1
- export default function (options: {
2
- url: string;
3
- }): Promise<void>;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const navigateTo: typeof ty.navigateTo;
3
+ export default navigateTo;
@@ -1,7 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
+ /// <reference path="../../@types/api.d.ts" />
3
4
  import router from '@ray-js/router';
4
- export default function (options) {
5
+
6
+ var navigateTo = function (options) {
5
7
  router.push(options.url);
6
8
  return Promise.resolve();
7
- }
9
+ };
10
+
11
+ export default navigateTo;
@@ -1,7 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
+ /// <reference path="../../@types/api.d.ts" />
3
4
  import router from '@ray-js/router';
4
- export default function (options) {
5
+
6
+ var navigateTo = function (options) {
5
7
  router.push(options.url);
6
8
  return Promise.resolve();
7
- }
9
+ };
10
+
11
+ export default navigateTo;
@@ -1 +1,3 @@
1
- export default function (): void;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const navigateToMiniProgram: typeof ty.navigateToMiniProgram;
3
+ export default navigateToMiniProgram;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var navigateToMiniProgram = function () {
2
3
  console.warn('// TODO 暂未实现方法 navigateToMiniProgram');
3
- }
4
+ };
5
+
6
+ export default navigateToMiniProgram;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var navigateToMiniProgram = function () {
2
3
  console.warn('// TODO 暂未实现方法 navigateToMiniProgram');
3
- }
4
+ };
5
+
6
+ export default navigateToMiniProgram;
@@ -1 +1,3 @@
1
- export default function (): void;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const onRouterEvent: typeof ty.onRouterEvent;
3
+ export default onRouterEvent;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var onRouterEvent = function () {
2
3
  console.warn('// TODO 暂未实现方法 onRouterEvent');
3
- }
4
+ };
5
+
6
+ export default onRouterEvent;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var onRouterEvent = function () {
2
3
  console.warn('// TODO 暂未实现方法 onRouterEvent');
3
- }
4
+ };
5
+
6
+ export default onRouterEvent;
@@ -1,3 +1,3 @@
1
- export default function (options: {
2
- url: string;
3
- }): Promise<void>;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const reLaunch: typeof ty.reLaunch;
3
+ export default reLaunch;
@@ -1,7 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
+ /// <reference path="../../@types/api.d.ts" />
3
4
  import router from '@ray-js/router';
4
- export default function (options) {
5
+
6
+ var reLaunch = function (options) {
5
7
  router.reload(options.url);
6
8
  return Promise.resolve();
7
- }
9
+ };
10
+
11
+ export default reLaunch;
@@ -1,7 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
+ /// <reference path="../../@types/api.d.ts" />
3
4
  import router from '@ray-js/router';
4
- export default function (options) {
5
+
6
+ var reLaunch = function (options) {
5
7
  router.reload(options.url);
6
8
  return Promise.resolve();
7
- }
9
+ };
10
+
11
+ export default reLaunch;
@@ -1,3 +1,3 @@
1
- export default function (options: {
2
- url: string;
3
- }): Promise<void>;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const redirectTo: typeof ty.redirectTo;
3
+ export default redirectTo;
@@ -2,8 +2,12 @@ import "core-js/modules/es.regexp.exec.js";
2
2
  import "core-js/modules/es.string.replace.js";
3
3
  import "core-js/modules/es.object.to-string.js";
4
4
  import "core-js/modules/es.promise.js";
5
+ /// <reference path="../../@types/api.d.ts" />
5
6
  import router from '@ray-js/router';
6
- export default function (options) {
7
+
8
+ var redirectTo = function (options) {
7
9
  router.replace(options.url);
8
10
  return Promise.resolve();
9
- }
11
+ };
12
+
13
+ export default redirectTo;
@@ -2,8 +2,12 @@ import "core-js/modules/es.regexp.exec.js";
2
2
  import "core-js/modules/es.string.replace.js";
3
3
  import "core-js/modules/es.object.to-string.js";
4
4
  import "core-js/modules/es.promise.js";
5
+ /// <reference path="../../@types/api.d.ts" />
5
6
  import router from '@ray-js/router';
6
- export default function (options) {
7
+
8
+ var redirectTo = function (options) {
7
9
  router.replace(options.url);
8
10
  return Promise.resolve();
9
- }
11
+ };
12
+
13
+ export default redirectTo;
@@ -1 +1,3 @@
1
- export default function (): void;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const removeTabBarBadge: typeof ty.removeTabBarBadge;
3
+ export default removeTabBarBadge;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var removeTabBarBadge = function () {
2
3
  console.warn('// TODO 暂未实现方法 removeTabBarBadge');
3
- }
4
+ };
5
+
6
+ export default removeTabBarBadge;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var removeTabBarBadge = function () {
2
3
  console.warn('// TODO 暂未实现方法 removeTabBarBadge');
3
- }
4
+ };
5
+
6
+ export default removeTabBarBadge;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.default=_default;function _default(){if(!ty.requestCloud){console.warn('// TODO 暂未实现方法 ty.requestCloud');return;}return ty.requestCloud.apply(this,arguments);}
@@ -0,0 +1,3 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const requestCloud: typeof ty.requestCloud;
3
+ export default requestCloud;
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.default=_default;function _default(){if(!ty.requestCloud){console.warn('// TODO 暂未实现方法 ty.requestCloud');return;}return ty.requestCloud.apply(this,arguments);}
@@ -0,0 +1,6 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var requestCloud = function () {
3
+ console.warn('// TODO 暂未实现方法 requestCloud');
4
+ };
5
+
6
+ export default requestCloud;
@@ -0,0 +1,18 @@
1
+ ---
2
+ title: requestCloud
3
+ nav:
4
+ title: API
5
+ path: /api
6
+ group:
7
+ title: 网络/发起请求
8
+ ---
9
+
10
+ # requestCloud
11
+
12
+ 小程序云能力
13
+
14
+ ## 引入
15
+
16
+ ```js
17
+ import { requestCloud } from '@ray-js/api';
18
+ ```
@@ -0,0 +1 @@
1
+ export default function (): any;
@@ -0,0 +1 @@
1
+ export default function (): any;
@@ -0,0 +1,8 @@
1
+ export default function () {
2
+ if (!ty.requestCloud) {
3
+ console.warn('// TODO 暂未实现方法 ty.requestCloud');
4
+ return;
5
+ }
6
+
7
+ return ty.requestCloud.apply(this, arguments);
8
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var requestCloud = function () {
3
+ console.warn('// TODO 暂未实现方法 requestCloud');
4
+ };
5
+
6
+ export default requestCloud;
@@ -0,0 +1 @@
1
+ export default function (): any;
@@ -0,0 +1,8 @@
1
+ export default function () {
2
+ if (!wx.requestCloud) {
3
+ console.warn('// TODO 暂未实现方法 wx.requestCloud');
4
+ return;
5
+ }
6
+
7
+ return wx.requestCloud.apply(this, arguments);
8
+ }
@@ -1 +1,3 @@
1
- export default function (): void;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const resizeImage: typeof ty.resizeImage;
3
+ export default resizeImage;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var resizeImage = function () {
2
3
  console.warn('// TODO 暂未实现方法 resizeImage');
3
- }
4
+ };
5
+
6
+ export default resizeImage;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var resizeImage = function () {
2
3
  console.warn('// TODO 暂未实现方法 resizeImage');
3
- }
4
+ };
5
+
6
+ export default resizeImage;
@@ -1 +1,3 @@
1
- export default function (): void;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const router: typeof ty.router;
3
+ export default router;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var router = function () {
2
3
  console.warn('// TODO 暂未实现方法 router');
3
- }
4
+ };
5
+
6
+ export default router;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var router = function () {
2
3
  console.warn('// TODO 暂未实现方法 router');
3
- }
4
+ };
5
+
6
+ export default router;
@@ -1,6 +1,4 @@
1
- interface Options {
2
- frontColor: string;
3
- backgroundColor: string;
4
- }
5
- export default function setNavigationBarColor(options: Options): Promise<void>;
6
- export {};
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ /// <reference types="@tuya-miniapp/mini-kit" />
3
+ declare const _default: typeof ty.setNavigationBarColor;
4
+ export default _default;
@@ -1,7 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
- export default function setNavigationBarColor(options) {
3
+
4
+ /// <reference path="../../@types/api.d.ts" />
5
+ var setNavigationBarColor = function (options) {
4
6
  var meta = document.querySelector('meta[name=theme-color]');
5
7
  meta && meta.setAttribute('content', options.backgroundColor);
6
8
  return Promise.resolve();
7
- }
9
+ };
10
+
11
+ export default setNavigationBarColor;
@@ -1,7 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
- export default function setNavigationBarColor(options) {
3
+
4
+ /// <reference path="../../@types/api.d.ts" />
5
+ var setNavigationBarColor = function (options) {
4
6
  var meta = document.querySelector('meta[name=theme-color]');
5
7
  meta && meta.setAttribute('content', options.backgroundColor);
6
8
  return Promise.resolve();
7
- }
9
+ };
10
+
11
+ export default setNavigationBarColor;
@@ -1,5 +1,4 @@
1
- interface Options {
2
- title: string;
3
- }
4
- export default function setNavigationBarTitle(options: Options): Promise<void>;
5
- export {};
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ /// <reference types="@tuya-miniapp/mini-kit" />
3
+ declare const _default: typeof ty.setNavigationBarTitle;
4
+ export default _default;
@@ -1,7 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
- export default function setNavigationBarTitle(options) {
3
+
4
+ /// <reference path="../../@types/api.d.ts" />
5
+ var setNavigationBarTitle = function (options) {
4
6
  var title = options.title;
5
7
  document.title = title;
6
8
  return Promise.resolve();
7
- }
9
+ };
10
+
11
+ export default setNavigationBarTitle;
@@ -1,7 +1,11 @@
1
1
  import "core-js/modules/es.object.to-string.js";
2
2
  import "core-js/modules/es.promise.js";
3
- export default function setNavigationBarTitle(options) {
3
+
4
+ /// <reference path="../../@types/api.d.ts" />
5
+ var setNavigationBarTitle = function (options) {
4
6
  var title = options.title;
5
7
  document.title = title;
6
8
  return Promise.resolve();
7
- }
9
+ };
10
+
11
+ export default setNavigationBarTitle;
@@ -1 +1,3 @@
1
- export default function (): void;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const setTabBarBadge: typeof ty.setTabBarBadge;
3
+ export default setTabBarBadge;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var setTabBarBadge = function () {
2
3
  console.warn('// TODO 暂未实现方法 setTabBarBadge');
3
- }
4
+ };
5
+
6
+ export default setTabBarBadge;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var setTabBarBadge = function () {
2
3
  console.warn('// TODO 暂未实现方法 setTabBarBadge');
3
- }
4
+ };
5
+
6
+ export default setTabBarBadge;
@@ -1 +1,3 @@
1
- export default function (): void;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const setTabBarItem: typeof ty.setTabBarItem;
3
+ export default setTabBarItem;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var setTabBarItem = function () {
2
3
  console.warn('// TODO 暂未实现方法 setTabBarItem');
3
- }
4
+ };
5
+
6
+ export default setTabBarItem;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var setTabBarItem = function () {
2
3
  console.warn('// TODO 暂未实现方法 setTabBarItem');
3
- }
4
+ };
5
+
6
+ export default setTabBarItem;
@@ -1 +1,3 @@
1
- export default function (): void;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const setTabBarStyle: typeof ty.setTabBarStyle;
3
+ export default setTabBarStyle;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var setTabBarStyle = function () {
2
3
  console.warn('// TODO 暂未实现方法 setTabBarStyle');
3
- }
4
+ };
5
+
6
+ export default setTabBarStyle;
@@ -1,3 +1,6 @@
1
- export default function () {
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ var setTabBarStyle = function () {
2
3
  console.warn('// TODO 暂未实现方法 setTabBarStyle');
3
- }
4
+ };
5
+
6
+ export default setTabBarStyle;
@@ -1 +1,3 @@
1
- export default function (): void;
1
+ /// <reference path="../../@types/api.d.ts" />
2
+ declare const showNavigationBarLoading: typeof ty.showNavigationBarLoading;
3
+ export default showNavigationBarLoading;