Skip to content

Commit

Permalink
chore : releases 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
je0ngyun committed Dec 25, 2022
1 parent d8923a4 commit 5211d50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import * as React from 'react'
/**
* v1.0.2
*/

interface Props {
/**
* Number of pages to display at once in the pagination bar if it is greater than the total number of pages, the page list is initialized with the total number of pages
Expand All @@ -14,7 +12,7 @@ interface Props {
totalPage?: number
}

declare const usePagination: ({ numOfPage, totalPage }: Props) => {
export interface usePaginationReturn {
/**
* Number of pages to display at once in the pagination bar if it is greater than the total number of pages, the page list is initialized with the total number of pages
*/
Expand Down Expand Up @@ -66,4 +64,9 @@ declare const usePagination: ({ numOfPage, totalPage }: Props) => {
currentPage: number
}

declare const usePagination: ({
numOfPage,
totalPage,
}: Props) => usePaginationReturn

export default usePagination
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-use-pagination-hook",
"version": "1.0.2",
"version": "1.1.2",
"module": "dist",
"main": "dist",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 5211d50

Please sign in to comment.