import type { PlatformFilesystem, FileFilter } from '@/platform/types'; export const webFilesystem: PlatformFilesystem = { async saveFile(filename: string, blob: Blob, _filters?: FileFilter[]) { // Browser: trigger download const url = window.URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = filename; document.body.appendChild(a); a.click(); window.URL.revokeObjectURL(url); document.body.removeChild(a); }, };