We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e40bb35 commit a837f8bCopy full SHA for a837f8b
src/components/Pagination/pagination.ts
@@ -1,5 +1,10 @@
1
import type { ButtonProps } from '../Button/button'
2
3
+export type PaginationEventType = {
4
+ page: number
5
+ label?: string | number | undefined
6
+}
7
+
8
export type PaginationProps = {
9
type?: 'arrows' | 'dots' | null
10
showChevrons?: boolean
@@ -22,9 +27,9 @@ export type PaginationProps = {
22
27
}
23
28
24
29
export type SveltePaginationProps = {
25
- onChange?: (event: any) => void
30
+ onChange?: (event: PaginationEventType) => void
26
31
} & PaginationProps
32
33
export type ReactPaginationProps = {
34
35
0 commit comments