Skip to content

Commit

Permalink
add type for github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Himyu committed Jan 13, 2024
1 parent 9d3cf51 commit 0570218
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions release.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@

interface authorType {
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;
}

interface uploaderType {
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;
}

interface assetsItemType {
url: string;
id: number;
node_id: string;
name: string;
label: string;
uploader: uploaderType;
content_type: string;
state: string;
size: number;
download_count: number;
created_at: string;
updated_at: string;
browser_download_url: string;
}

export interface ReleaseType {
url: string;
assets_url: string;
upload_url: string;
html_url: string;
id: number;
author: authorType;
node_id: string;
tag_name: string;
target_commitish: string;
name: string;
draft: boolean;
prerelease: boolean;
created_at: string;
published_at: string;
assets: Array<assetsItemType>;
tarball_url: string;
zipball_url: string;
body: string;
}

0 comments on commit 0570218

Please sign in to comment.