From a9e1e823591c01be4dc960bf5427131480dfa413 Mon Sep 17 00:00:00 2001 From: whoswhip Date: Mon, 29 Dec 2025 04:27:45 -0500 Subject: [PATCH] feat: add Pagination interface and integrate it into User type --- SharpbinV3.Client/src/lib/types/pagination.ts | 6 ++++++ SharpbinV3.Client/src/lib/types/user.ts | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 SharpbinV3.Client/src/lib/types/pagination.ts diff --git a/SharpbinV3.Client/src/lib/types/pagination.ts b/SharpbinV3.Client/src/lib/types/pagination.ts new file mode 100644 index 0000000..1d576af --- /dev/null +++ b/SharpbinV3.Client/src/lib/types/pagination.ts @@ -0,0 +1,6 @@ +export interface Pagination { + page: number; + pageSize: number; + totalCount: number; + totalPages: number; +} \ No newline at end of file diff --git a/SharpbinV3.Client/src/lib/types/user.ts b/SharpbinV3.Client/src/lib/types/user.ts index ceaaf46..886b065 100644 --- a/SharpbinV3.Client/src/lib/types/user.ts +++ b/SharpbinV3.Client/src/lib/types/user.ts @@ -1,4 +1,5 @@ import type { Paste } from './paste'; +import type { Pagination } from './pagination'; export interface User { uid: number; @@ -10,4 +11,5 @@ export interface User { roles: number[]; visibility: 0 | 1 | 2; pastes: Paste[] | null; + pagination: Pagination | null; }