@dcloudio/types
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "@dcloudio/types", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "uni-app types", | ||
@@ -5,0 +5,0 @@ "typings": "index.d.ts", |
@@ -152,3 +152,3 @@ declare namespace App { | ||
*/ | ||
onError?(error?: string): void; | ||
onError?(error: string): void; | ||
/** | ||
@@ -163,3 +163,3 @@ * 页面不存在监听函数 | ||
*/ | ||
onPageNotFound?(options?: PageNotFoundOption): void; | ||
onPageNotFound?(options: PageNotFoundOption): void; | ||
/** | ||
@@ -166,0 +166,0 @@ * 监听 nvue 页面消息 |
@@ -138,3 +138,3 @@ declare namespace Page { | ||
*/ | ||
onShareAppMessage?(options?: ShareAppMessageOption): CustomShareContent; | ||
onShareAppMessage?(options: ShareAppMessageOption): CustomShareContent; | ||
/** | ||
@@ -146,3 +146,3 @@ * 页面滚动触发事件的处理函数 | ||
*/ | ||
onPageScroll?(options?: PageScrollOption): void; | ||
onPageScroll?(options: PageScrollOption): void; | ||
/** | ||
@@ -152,3 +152,3 @@ * 页面尺寸改变时触发 | ||
*/ | ||
onResize?(options?: PageScrollOption): void; | ||
onResize?(options: PageScrollOption): void; | ||
/** | ||
@@ -158,3 +158,3 @@ * 当前是 tab 页时,点击 tab 时触发 | ||
*/ | ||
onTabItemTap?(options?: TabItemTapOption): void; | ||
onTabItemTap?(options: TabItemTapOption): void; | ||
/** | ||
@@ -164,3 +164,3 @@ * 监听原生标题栏按钮点击事件 | ||
*/ | ||
onNavigationBarButtonTap?(options?: NavigationBarButtonTapOption): void; | ||
onNavigationBarButtonTap?(options: NavigationBarButtonTapOption): void; | ||
/** | ||
@@ -171,3 +171,3 @@ * 监听页面返回 | ||
*/ | ||
onBackPress?(options?: BackPressOption): any; | ||
onBackPress?(options: BackPressOption): any; | ||
/** | ||
@@ -178,3 +178,3 @@ * 监听原生标题栏搜索输入框输入内容变化事件 | ||
*/ | ||
onNavigationBarSearchInputChanged?(options?: NavigationBarSearchInputChangedOption): any; | ||
onNavigationBarSearchInputChanged?(options: NavigationBarSearchInputChangedOption): any; | ||
/** | ||
@@ -181,0 +181,0 @@ * 监听原生标题栏搜索输入框搜索事件,用户点击软键盘上的“搜索”按钮时触发。 |
890696