Skip to content

Commit

Permalink
feat(common): added paginated type to common interface halper
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzwan committed Jun 2, 2022
1 parent 0816fd9 commit aa6952d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,11 @@ export function RouteScope<T extends Record<string, Route<any, any>>>(
): GetScope<T> {
return new Scope(conf) as GetScope<T>;
}

export class Paginated<T> {
data: T[];
count: number;
total: number;
page: number;
pageCount: number;
}

0 comments on commit aa6952d

Please sign in to comment.