Feat: may download files(recording/audio/video/speech) (#431)
* may download recording * may download recording/audio/video/speech
This commit is contained in:
1
enjoy/src/types/audio.d.ts
vendored
1
enjoy/src/types/audio.d.ts
vendored
@@ -3,6 +3,7 @@ type AudioType = {
|
||||
id: string;
|
||||
source: string;
|
||||
name: string;
|
||||
filename: string;
|
||||
description?: string;
|
||||
src?: string;
|
||||
coverUrl?: string;
|
||||
|
||||
4
enjoy/src/types/enjoy-app.d.ts
vendored
4
enjoy/src/types/enjoy-app.d.ts
vendored
@@ -76,7 +76,7 @@ type EnjoyAppType = {
|
||||
) => Promise<string[] | undefined>;
|
||||
showSaveDialog: (
|
||||
options: Electron.SaveDialogOptions
|
||||
) => Promise<Electron.SaveDialogReturnValue>;
|
||||
) => Promise<string | undefined>;
|
||||
showMessageBox: (
|
||||
options: Electron.MessageBoxOptions
|
||||
) => Promise<Electron.MessageBoxReturnValue>;
|
||||
@@ -244,7 +244,7 @@ type EnjoyAppType = {
|
||||
};
|
||||
download: {
|
||||
onState: (callback: (event, state) => void) => void;
|
||||
start: (url: string, savePath?: string) => void;
|
||||
start: (url: string, savePath?: string) => Promise<string | undefined>;
|
||||
cancel: (filename: string) => Promise<void>;
|
||||
cancelAll: () => void;
|
||||
dashboard: () => Promise<DownloadStateType[]>;
|
||||
|
||||
1
enjoy/src/types/video.d.ts
vendored
1
enjoy/src/types/video.d.ts
vendored
@@ -3,6 +3,7 @@ type VideoType = {
|
||||
id: string;
|
||||
source: string;
|
||||
name: string;
|
||||
filename: string;
|
||||
description?: string;
|
||||
filename?: string;
|
||||
coverUrl?: string;
|
||||
|
||||
Reference in New Issue
Block a user