Merge pull request #4816 from erichillah/master

Add definitions for blob-stream
This commit is contained in:
Masahiro Wakame
2015-07-13 07:28:08 +09:00
2 changed files with 27 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
/// <reference path="./blob-stream.d.ts" />
/// <reference path="../node/node.d.ts" />
var bl = require('blob-stream');
var blob = bl.toBlob();
var brl = bl.toBlobURL("app/JSON");
+20
View File
@@ -0,0 +1,20 @@
// Type definitions for blob-stream v0.1.3
// Project: https://github.com/devongovett/blob-stream
// Definitions by: Eric Hillah <https://github.com/erichillah>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare function BlobStream(): BlobStream.IBlobStream;
declare module BlobStream {
interface IBlobStream extends NodeJS.WritableStream{
toBlob(type?: string): Blob;
toBlobURL(type?: string): string;
}
}
declare module "blob-stream" {
export = BlobStream;
}