icssoa 7 months ago
parent
commit
d200753acf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cool/hooks/pager.ts

+ 2 - 2
cool/hooks/pager.ts

@@ -114,6 +114,6 @@ export class Pager {
 }
 
 // 创建分页器实例
-export function usePager(cb: PagerCallback) {
+export const usePager = (cb: PagerCallback): Pager => {
 	return new Pager(cb);
-}
+};