Adds blob-stream definition files

This commit is contained in:
Eric HILLAH
2015-07-02 17:18:07 +02:00
parent dff6169755
commit 85c339b16f
2 changed files with 26 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
/// <reference path="./blob-stream.d.ts" />
var bl = BlobStream();
var blob = bl.toBlob("aplication/PDF");
var brl = bl.toBlobURL("app/JSON");
+20
View File
@@ -0,0 +1,20 @@
// Type definitions for Pdfkit v0.7.1
// 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;
}