rewrite in typescript

This commit is contained in:
Ethan Lane 2021-12-01 20:32:20 +00:00
parent a3841f5f37
commit f673339d90
Signed by: Vylpes
GPG key ID: EED233CC06D12504
10 changed files with 211 additions and 129 deletions

View file

@ -0,0 +1,6 @@
import IRedditResult from "./IRedditResult";
export default interface IFetchResult {
IsSuccess: boolean;
Result?: IRedditResult;
}

View file

@ -0,0 +1,11 @@
export default interface IRedditResult {
Archived: boolean,
Downs: number,
Hidden: boolean,
Permalink: string,
Subreddit: string,
SubredditSubscribers: number,
Title: string,
Ups: number,
Url: string
}