Fix export (#5782)

This commit is contained in:
Reece Browne
2026-02-23 22:15:32 +00:00
committed by GitHub
parent 9b0610b2cc
commit d3494e3287
5 changed files with 51 additions and 53 deletions
@@ -56,7 +56,6 @@ export interface SearchActions {
}
export interface ExportActions {
download: () => void;
saveAsCopy: () => Promise<ArrayBuffer | null>;
}
@@ -336,12 +335,6 @@ export function createViewerActions({
};
const exportActions: ExportActions = {
download: () => {
const api = registry.current.export?.api;
if (api?.download) {
api.download();
}
},
saveAsCopy: async () => {
const api = registry.current.export?.api;
if (api?.saveAsCopy) {
@@ -92,7 +92,6 @@ export interface ThumbnailAPIWrapper {
}
export interface ExportAPIWrapper {
download: () => void;
saveAsCopy: () => { toPromise: () => Promise<ArrayBuffer> };
}