Files
mawesome/src/types.ts
2021-01-15 10:43:56 +01:00

19 lines
408 B
TypeScript

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;
};