mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
change blob-stream type argument to be optional
This commit is contained in:
@@ -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");
|
||||
|
||||
4
blob-stream/blob-stream.d.ts
vendored
4
blob-stream/blob-stream.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user