Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pager): [pager] fix pager type error #2801

Merged
merged 7 commits into from
Jan 14, 2025
10 changes: 5 additions & 5 deletions packages/renderless/types/pager.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ import type {
setTotal,
clickSizes,
watchInternalCurrentPage,
watchPageSizes,
watchCurrentPage,
watchInternalPageCount,
watchPageSize,
watchTotal,
watchShowSizes
watchShowSizes,
watchInternalPageSize,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the new watchInternalPageSize and getInternalPageSize functions are correctly implemented and tested to prevent any runtime errors.

getInternalPageSize
} from '../src/pager'

export type IPagerProps = ExtractPropTypes<typeof pagerProps>
Expand Down Expand Up @@ -89,12 +89,12 @@ export interface IPagerApi {
setTotal: ReturnType<typeof setTotal>
clickSizes: ReturnType<typeof clickSizes>
watchInternalCurrentPage: ReturnType<typeof watchInternalCurrentPage>
watchPageSizes: ReturnType<typeof watchPageSizes>
watchCurrentPage: ReturnType<typeof watchCurrentPage>
watchInternalPageCount: ReturnType<typeof watchInternalPageCount>
watchPageSize: ReturnType<typeof watchPageSize>
watchTotal: ReturnType<typeof watchTotal>
watchShowSizes: ReturnType<typeof watchShowSizes>
watchInternalPageSize: ReturnType<typeof watchInternalPageSize>
getInternalPageSize: ReturnType<typeof getInternalPageSize>
}
export type IPagerRenderlessParams = ISharedRenderlessFunctionParams<never> & {
api: IPagerApi
Expand Down
Loading