feat: paginates using async generator

This commit is contained in:
GitHub Actions
2021-10-13 23:42:57 +02:00
parent f7a8341bb1
commit 51da6c20db
3 changed files with 43 additions and 45 deletions

View File

@@ -5,14 +5,11 @@ export type SortedLanguageList = {
};
export type PaginationLink = {
next: string;
last: string | undefined | null;
uri: string;
rel: 'next' | 'last' | 'prev' | 'first';
};
export type Stars = Endpoints['GET /user/starred']['response']['data'];
export type Star = Stars[number] | { language: string };
export type ApiGetStarResponse = {
links: PaginationLink;
data: Stars;
};
export type ApiGetStarResponse = Stars;