param file param context export const downloadFile = ( file , context ) : void => { const objectUrl = URL . createObjectURL ( file ) ; const el = context . createElement ( "a" ) ; el . href = objectUrl ; el . download = file . name ; context . body . appendChild ( el ) ; el . click ( ) ; el . remove ( ) ; URL . revokeObjectURL ( objectUrl ) ; } ;