This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
86 lines (83 loc) · 1.81 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/**
* Type definition for a GitHub repository.
* Contains details like id, name, stargazer count, URLs,
* creation/update dates, topics, license info, language,
* file list, owner details, and other metadata.
*/
type GitHubRepo = {
id: number;
name: string;
stargazers_count: number;
html_url: string;
fork: boolean;
homepage: string;
description: string;
created_at: string;
updated_at: string;
pushed_at: string;
archived: boolean;
topics: string[];
license_name: string;
license_url: string;
language: string;
license_key: string;
license: any;
stars: number;
home_page: string;
license_spdx_id: string;
files: string[];
owner: any;
[key: string]: any;
};
/**
* UserData type definition for a GitHub user.
* Contains details like name, login, avatar,
* URLs, follower counts, etc.
*/
type UserData = {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
name: string;
company: string | null;
blog: string;
location: string;
email: string | null;
hireable: boolean;
bio: string;
twitter_username: string | null;
public_repos: number;
public_gists: number;
followers: number;
following: number;
created_at: string;
updated_at: string;
};
/** SocialLink type definition for social media links associated with a GitHub user profile. */
type SocialLink = {
provider: string;
url: string;
};
type BlogPost = {
id: string;
title: string;
date: string;
description: string;
author: string;
keywords: string[];
};