feat: update saveExportedVideo fn signature

This commit is contained in:
AbhinRustagi
2026-05-02 01:02:42 +05:30
parent 884021c7d6
commit a38454a7fb
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -76,6 +76,7 @@ interface Window {
saveExportedVideo: (
videoData: ArrayBuffer,
fileName: string,
exportFolder?: string,
) => Promise<{ success: boolean; path?: string; message?: string; canceled?: boolean }>;
openVideoFilePicker: () => Promise<{ success: boolean; path?: string; canceled?: boolean }>;
setCurrentVideoPath: (path: string) => Promise<{ success: boolean }>;
+2 -2
View File
@@ -68,8 +68,8 @@ contextBridge.exposeInMainWorld("electronAPI", {
openExternalUrl: (url: string) => {
return ipcRenderer.invoke("open-external-url", url);
},
saveExportedVideo: (videoData: ArrayBuffer, fileName: string) => {
return ipcRenderer.invoke("save-exported-video", videoData, fileName);
saveExportedVideo: (videoData: ArrayBuffer, fileName: string, exportFolder?: string) => {
return ipcRenderer.invoke("save-exported-video", videoData, fileName, exportFolder);
},
openVideoFilePicker: () => {
return ipcRenderer.invoke("open-video-file-picker");