best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
web/api: merge picker types
wukko4505d6cfe13d
diff --git a/web/src/lib/types/api.ts b/web/src/lib/types/api.tsindex 8df6d570..a40b6d3c 100644--- a/web/src/lib/types/api.ts+++ b/web/src/lib/types/api.ts@@ -20,24 +20,15 @@ type CobaltPartialURLResponse = {url: string,}-type CobaltPartialImagesPickerResponse = {- pickerType: 'images',- picker: CobaltPartialURLResponse[],-}--type CobaltPartialVariousPickerResponse = {- pickerType: 'various',+type CobaltPickerResponse = {+ status: CobaltResponseType.Pickerpicker: {- type: 'photo' | 'video',+ type: 'photo' | 'video' | 'gif',url: string,- thumb: string,+ thumb?: string,}[];-}--type CobaltPickerResponse = {- status: CobaltResponseType.Picker- audio: string | false,-} & (CobaltPartialImagesPickerResponse | CobaltPartialVariousPickerResponse);+ audio?: string,+};type CobaltRedirectResponse = {status: CobaltResponseType.Redirect,