-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
41 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export {}; | ||
|
||
declare global { | ||
type HackerNewsCategory = 'top' | 'new' | 'best' | 'ask' | 'show'; | ||
|
||
interface HackerNewsItemData { | ||
id: number; | ||
deleted?: boolean; | ||
type?: string; | ||
by?: string; | ||
time?: number; | ||
text?: string; | ||
dead?: boolean; | ||
parent?: number; | ||
poll?: number; | ||
kids?: number[]; | ||
url?: string; | ||
score?: number; | ||
title?: string; | ||
parts?: number[]; | ||
descendants?: number; | ||
} | ||
|
||
interface HackerNewsItem extends Omit<HackerNewsItemData, 'url'> { | ||
url?: { | ||
hostname: string; | ||
pathname: string; | ||
href: string; | ||
search: string; | ||
}; | ||
} | ||
|
||
interface HackerNewsUser { | ||
id: string; | ||
created: number; | ||
karma: number; | ||
about?: string; | ||
submitted?: number[]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43a1d37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for hackernews-dot-cool ready!
✅ Preview
https://hackernews-dot-cool-oeaiqotlv-jonamil-56ba8df7.vercel.app
Built with commit 43a1d37.
This pull request is being automatically deployed with vercel-action