Skip to content

Commit d01647a

Browse files
committed
Code review changes
1 parent c009cb5 commit d01647a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/interface.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ export interface showSizeChangerLocale {
2323
onChange?: (size: number) => void;
2424
}
2525

26+
type ShowSizeChanger = boolean | {
27+
options?: string[] | number[];
28+
showSearch?: boolean;
29+
onChange?: (size: number) => void;
30+
}
31+
2632
export interface PaginationData {
2733
className: string;
2834
selectPrefixCls: string;
@@ -38,7 +44,7 @@ export interface PaginationData {
3844

3945
hideOnSinglePage: boolean;
4046
align: 'start' | 'center' | 'end';
41-
showSizeChanger: boolean | showSizeChangerLocale;
47+
showSizeChanger: ShowSizeChanger;
4248
showLessItems: boolean;
4349
showPrevNextJumpers: boolean;
4450
showQuickJumper: boolean | object;

0 commit comments

Comments
 (0)