1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-18 09:06:14 +07:00

chore(#203): updated typescript to version 3.7 - beta

This commit is contained in:
Priscila Oliveira
2019-10-18 12:36:17 +02:00
committed by GitHub
parent 302f4dbd89
commit 8c66dbc4d7
3 changed files with 75 additions and 26 deletions

View File

@@ -35,6 +35,7 @@ export function downloadFile(fileStream: Blob, fileName: string): void {
let file: File;
// File constructor is not supported by Edge
// https://developer.mozilla.org/en-US/docs/Web/API/File#Browser_compatibility
// @ts-ignore. Please see: https://github.com/microsoft/TypeScript/issues/33792
if (navigator.msSaveBlob) {
// Detect if Edge
file = blobToFile(new Blob([fileStream], { type: 'application/octet-stream' }), fileName);