diff --git a/src/interfaces.ts b/src/interfaces.ts new file mode 100644 index 0000000..5131eb2 --- /dev/null +++ b/src/interfaces.ts @@ -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; +} +