mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #4816 from erichillah/master
Add definitions for blob-stream
This commit is contained in:
@@ -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");
|
||||
Vendored
+20
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user