Fix type error (#34)
Co-authored-by: Ethan Lane <ethan@vylpes.com> Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/random-bunny/pulls/34
This commit is contained in:
parent
1d26026b1a
commit
ee4f1873d1
7 changed files with 55 additions and 31 deletions
|
@ -1,6 +1,13 @@
|
|||
import IRedditResult from "./IRedditResult";
|
||||
|
||||
export default interface IFetchResult {
|
||||
IsSuccess: boolean;
|
||||
Result?: IRedditResult;
|
||||
data: {
|
||||
archived: boolean,
|
||||
downs: number,
|
||||
hidden: boolean,
|
||||
permalink: string,
|
||||
subreddit: string,
|
||||
subreddit_subscribers: number,
|
||||
title: string,
|
||||
ups: number,
|
||||
url: string
|
||||
}
|
||||
}
|
6
src/contracts/IReturnResult.ts
Normal file
6
src/contracts/IReturnResult.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import IRedditResult from "./IRedditResult";
|
||||
|
||||
export default interface IReturnResult {
|
||||
IsSuccess: boolean;
|
||||
Result?: IRedditResult;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue