@tarojs/taro 3.5.0-alpha.9 → 3.5.0-beta.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.
Files changed (57) hide show
  1. package/index.js +3 -4
  2. package/package.json +4 -5
  3. package/types/api/base/debug.d.ts +1 -1
  4. package/types/api/base/index.d.ts +3 -3
  5. package/types/api/base/performance.d.ts +5 -5
  6. package/types/api/base/system.d.ts +2 -2
  7. package/types/api/base/update.d.ts +6 -6
  8. package/types/api/base/weapp/app-event.d.ts +10 -10
  9. package/types/api/base/weapp/life-cycle.d.ts +1 -1
  10. package/types/api/data-analysis/index.d.ts +1 -1
  11. package/types/api/device/accelerometer.d.ts +3 -3
  12. package/types/api/device/calendar.d.ts +1 -1
  13. package/types/api/device/clipboard.d.ts +2 -2
  14. package/types/api/device/compass.d.ts +3 -3
  15. package/types/api/device/gyroscope.d.ts +4 -4
  16. package/types/api/device/keyboard.d.ts +1 -1
  17. package/types/api/device/memory.d.ts +1 -1
  18. package/types/api/device/network.d.ts +2 -2
  19. package/types/api/device/phone.d.ts +1 -1
  20. package/types/api/device/scan.d.ts +1 -1
  21. package/types/api/device/screen.d.ts +5 -5
  22. package/types/api/device/vibrate.d.ts +2 -2
  23. package/types/api/device/wifi.d.ts +3 -3
  24. package/types/api/ext/index.d.ts +2 -2
  25. package/types/api/files/index.d.ts +32 -32
  26. package/types/api/framework/index.d.ts +1 -1
  27. package/types/api/location/index.d.ts +9 -9
  28. package/types/api/media/audio.d.ts +1 -1
  29. package/types/api/media/background-audio.d.ts +1 -1
  30. package/types/api/media/camera.d.ts +8 -8
  31. package/types/api/media/image.d.ts +5 -5
  32. package/types/api/media/map.d.ts +15 -15
  33. package/types/api/media/recorder.d.ts +9 -9
  34. package/types/api/media/video.d.ts +2 -2
  35. package/types/api/navigate/index.d.ts +2 -2
  36. package/types/api/network/download.d.ts +5 -5
  37. package/types/api/network/request.d.ts +3 -3
  38. package/types/api/network/upload.d.ts +5 -5
  39. package/types/api/network/websocket.d.ts +6 -6
  40. package/types/api/open-api/address.d.ts +1 -1
  41. package/types/api/open-api/authorize.d.ts +1 -1
  42. package/types/api/open-api/settings.d.ts +2 -2
  43. package/types/api/open-api/subscribe-message.d.ts +2 -2
  44. package/types/api/open-api/user-info.d.ts +2 -2
  45. package/types/api/route/index.d.ts +5 -5
  46. package/types/api/share/index.d.ts +2 -2
  47. package/types/api/storage/index.d.ts +10 -10
  48. package/types/api/ui/animation.d.ts +34 -36
  49. package/types/api/ui/interaction.d.ts +6 -6
  50. package/types/api/ui/menu.d.ts +1 -1
  51. package/types/api/ui/navigation-bar.d.ts +5 -5
  52. package/types/api/ui/pull-down-refresh.d.ts +2 -2
  53. package/types/api/ui/scroll.d.ts +4 -2
  54. package/types/api/ui/tab-bar.d.ts +8 -8
  55. package/types/api/wxml/index.d.ts +16 -16
  56. package/types/compile.d.ts +4 -4
  57. package/types/taro.hooks.d.ts +10 -0
@@ -52,6 +52,16 @@ declare module './index' {
52
52
  */
53
53
  useShareTimeline(callback: () => ShareTimelineReturnObject): void
54
54
 
55
+ /**
56
+ * 页面加载完成时的回调。
57
+ */
58
+ useLoad(callback: () => void): void
59
+
60
+ /**
61
+ * 页面卸载时的回调。
62
+ */
63
+ useUnload(callback: () => void): void
64
+
55
65
  /**
56
66
  * 页面初次渲染完成的回调。
57
67
  * 此时页面已经准备妥当,可以和视图层进行交互。