From c87412b44b2ea339b4a0250f0d2e1b6fe2e07891 Mon Sep 17 00:00:00 2001 From: sinkaroid Date: Tue, 18 Apr 2023 11:12:41 +0700 Subject: [PATCH] feat: add interfaces --- src/interfaces.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/interfaces.ts 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; +} +