1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-26 15:01:17 -04:00

lots of random cleanup & organization

This commit is contained in:
2021-07-20 15:22:57 -04:00
parent 71892d3e17
commit e4d3e074fd
27 changed files with 425 additions and 419 deletions

View File

@@ -1,11 +1,21 @@
import type { Language } from "@octokit/graphql-schema";
export type Repository = {
type BaseRepoInfo = {
name: string;
url: string;
url: URL;
description: string;
};
export type GHRepoSchema = Required<BaseRepoInfo> & {
primaryLanguage?: Language;
stargazerCount: number;
forkCount: number;
pushedAt: string;
pushedAt: Date;
};
export type Repository = Required<BaseRepoInfo> & {
language?: Language;
stars: number;
forks: number;
updatedAt: Date;
};