Skip to content

Commit

Permalink
chore: add typing to callback type definition
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
alcercu and coderabbitai[bot] authored Jul 3, 2024
1 parent 3f419bc commit 0db25f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/pagination/use-pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const usePagination = (
currentPage: number,
numPages: number,
//eslint-disable-next-line @typescript-eslint/ban-types
callback: Function,
callback: (newPage: number) => void,
onCloseOnLastPage?: () => void,
numNeighbors = 2
) => {
Expand Down

0 comments on commit 0db25f6

Please sign in to comment.