I am trying to write a file downloader in TypeScript using the FileSystem API.
When I'm trying to create a new Blob object:
var blob: Blob = new Blob(xhr.response, JSON.stringify(mime));
I'm getting the error:
Supplied parameters do not match any signature of call target
It's possible to create a Blob without any parameters:
var blob: Blob = new Blob();
But that doesn't help.
The (deprecated) fall back for Blob is the BlobBuilder object but TypeScript (VS 2012 Plugin) only offers the MSBlobBuilder object.
What am I doing wrong? Or does TypeScript not know about the Blob constructor?