diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-15 17:08:00 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-15 17:08:00 +0100 |
| commit | 516f8256a4f72c7a01752d9aa4e035276fb08b51 (patch) | |
| tree | 791a83b4f6cc2963246752a8ae6efbac62ebcd85 /src/ts | |
| parent | 0fa8ae55c52852c34c9143a6ec43c954c6404df1 (diff) | |
chore: add pagination (load more) to blog page
Diffstat (limited to 'src/ts')
| -rw-r--r-- | src/ts/types/blog.ts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ts/types/blog.ts b/src/ts/types/blog.ts index 345deed..366231e 100644 --- a/src/ts/types/blog.ts +++ b/src/ts/types/blog.ts @@ -23,11 +23,13 @@ export type fetchPostsListReturn = ( after?: string ) => Promise<PostsListResponse>; -export type getPostsListReturn = ( - first?: number, - after?: string -) => Promise<PostsList>; +type PostsListProps = { + first?: number; + after?: string; +}; + +export type getPostsListReturn = (props: PostsListProps) => Promise<PostsList>; export type BlogPageProps = { - data: PostsList; + fallback: PostsList; }; |
