mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Adds blob-stream definition files
This commit is contained in:
@@ -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");
|
||||
Vendored
+20
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user