Skip to content

Commit

Permalink
feat: add interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sinkaroid committed Apr 18, 2023
1 parent 7242a81 commit c87412b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
export interface IVideoData {
success: boolean;
data: {
title: string;
id: string;
image: string;
duration: string;
views: string;
rating: string;
uploaded: string;
upvoted: string | null;
downvoted: string | null;
models: string[];
tags: string[];
};
source: string;
assets: string[];
}

export interface ISearchVideoData {
success: boolean;
data: string[];
source: string;
}

export interface MaybeError {
message: string;
}

0 comments on commit c87412b

Please sign in to comment.