change blob-stream type argument to be optional

This commit is contained in:
Eric HILLAH
2015-07-06 11:02:36 +02:00
parent 4c0cb630a8
commit 550470d7e2
2 changed files with 3 additions and 3 deletions

View File

@@ -3,5 +3,5 @@
var bl = require('blob-stream');
var blob = bl.toBlob("aplication/PDF");
var blob = bl.toBlob();
var brl = bl.toBlobURL("app/JSON");

View File

@@ -10,8 +10,8 @@ declare function BlobStream(): BlobStream.IBlobStream;
declare module BlobStream {
interface IBlobStream extends NodeJS.WritableStream{
toBlob(type: string): Blob;
toBlobURL(type: string): string;
toBlob(type?: string): Blob;
toBlobURL(type?: string): string;
}
}