feat: generate awesome list from stars

This commit is contained in:
Simone Corsi
2021-01-15 10:43:56 +01:00
parent e88401859a
commit 0f6fa769c9
23 changed files with 34337 additions and 0 deletions

18
src/types.ts Normal file
View File

@@ -0,0 +1,18 @@
import { Endpoints } from '@octokit/types';
export type SortedLanguageList = {
[language: string]: Star[];
};
export type PaginationLink = {
next: string;
last: string | undefined | null;
};
export type Stars = Endpoints['GET /user/starred']['response']['data'];
export type Star = Stars[number] | { language: string };
export type ApiGetStarResponse = {
links: PaginationLink;
data: Stars;
};