From 0ea19defcc26c1b9a093dec2ffe735a9b102e159 Mon Sep 17 00:00:00 2001 From: n8detar Date: Sat, 23 Apr 2022 11:36:55 -0700 Subject: [PATCH] Added type `Tasks` --- src/types/download.ts | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/types/download.ts b/src/types/download.ts index e0fb714..2f4beb6 100755 --- a/src/types/download.ts +++ b/src/types/download.ts @@ -10,6 +10,8 @@ export interface Task { task: string; } +export type Tasks = "download_pending" | "rescan_pending"; + export interface Paginate { page_size: number; page_from: number; @@ -21,11 +23,6 @@ export interface Paginate { total_hits: number; } -// export interface DownloadResponse { -// data: Datum[]; -// message: string; -// } - export interface Config { archive: Archive; default_view: DefaultView; @@ -111,19 +108,6 @@ export interface Datum { title: string; vid_thumb_url: string; youtube_id: string; - - // active: boolean; - // category: Category[]; - // channel: Channel; - // date_downloaded: number; - // description: string; - // media_url: string; - // player: Player; - // playlist: Playlist[]; - // stats: Stats; - // tags: string[]; - // vid_last_refresh: LastRefresh; - // vid_thumb_base64: string; } export enum Category {