Skip to content

Commit

Permalink
fix(useLoadMore): 修复 data 的类型定义
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Jul 8, 2020
1 parent 5505f9f commit 7cc7972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/useLoadMore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface UseLoadMoreResult<TItem> {
/** 当前页码 */
pageNumber: number
/** 已加载的数据 */
data: TItem[]
data?: TItem[]
/** 总数据量 */
total: number
/** 是否正在加载数据 */
Expand Down

0 comments on commit 7cc7972

Please sign in to comment.