mawesome/src/types.ts
2021-10-13 23:44:05 +02:00

16 lines
377 B
TypeScript

import { Endpoints } from '@octokit/types';
export type SortedLanguageList = {
[language: string]: Star[];
};
export type PaginationLink = {
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 = Stars;