rewrite in typescript
This commit is contained in:
parent
a3841f5f37
commit
f673339d90
10 changed files with 211 additions and 129 deletions
6
src/contracts/IFetchResult.ts
Normal file
6
src/contracts/IFetchResult.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import IRedditResult from "./IRedditResult";
|
||||
|
||||
export default interface IFetchResult {
|
||||
IsSuccess: boolean;
|
||||
Result?: IRedditResult;
|
||||
}
|
11
src/contracts/IRedditResult.ts
Normal file
11
src/contracts/IRedditResult.ts
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue