@dcloudio/uni-app-x 0.4.3 → 0.4.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "author": "DCloud",
@@ -129,7 +129,7 @@ export type SwitchTabOptions = {
129
129
  */
130
130
  complete?: SwitchTabCompleteCallback | null
131
131
  }
132
- export type NavigateBack = (options: NavigateBackOptions | null) => void
132
+ export type NavigateBack = (options?: NavigateBackOptions | null) => void
133
133
  export type NavigateBackSuccess = AsyncApiSuccessResult
134
134
  type NavigateBackSuccessCallback = (result: NavigateBackSuccess) => void
135
135
  export type NavigateBackFail = UniError
@@ -1,7 +1,7 @@
1
1
  import { AsyncApiSuccessResult } from '../../interface'
2
2
 
3
3
  export type StartPullDownRefresh = (
4
- options: StartPullDownRefreshOptions | null
4
+ options?: StartPullDownRefreshOptions | null
5
5
  ) => void
6
6
  export type StartPullDownRefreshOptions = {
7
7
  /**
@@ -258,7 +258,7 @@ export type SetTabBarStyleOptions = {
258
258
  complete?: SetTabBarStyleCompleteCallback
259
259
  }
260
260
 
261
- export type HideTabBar = (options: HideTabBarOptions | null) => void
261
+ export type HideTabBar = (options?: HideTabBarOptions | null) => void
262
262
  export type HideTabBarSuccess = AsyncApiSuccessResult
263
263
  export type HideTabBarSuccessCallback = (result: HideTabBarSuccess) => void
264
264
  export type HideTabBarFail = UniError
@@ -284,7 +284,7 @@ export type HideTabBarOptions = {
284
284
  complete?: HideTabBarCompleteCallback
285
285
  }
286
286
 
287
- export type ShowTabBar = (options: ShowTabBarOptions | null) => void
287
+ export type ShowTabBar = (options?: ShowTabBarOptions | null) => void
288
288
  export type ShowTabBarSuccess = AsyncApiSuccessResult
289
289
  export type ShowTabBarSuccessCallback = (result: ShowTabBarSuccess) => void
290
290
  export type ShowTabBarFail = UniError