feat: add interfaces
This commit is contained in:
29
src/interfaces.ts
Normal file
29
src/interfaces.ts
Normal file
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user