upda/server/web/src/utils/downloadFile.ts

8 lines
153 B
TypeScript
Raw Normal View History

import { saveAs } from 'file-saver';
const downloadFile = (blob: Blob, filename: string) => {
saveAs(blob, filename);
};
export default downloadFile;