From ca4444fdb9f8f990d0d3a40ce8dca992cc354c61 Mon Sep 17 00:00:00 2001 From: Lior Mualem Date: Wed, 7 May 2014 10:52:29 +0300 Subject: [PATCH] Updated fixed "collection" function in gridfs-stream interface --- gridfs-stream/gridfs-stream.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gridfs-stream/gridfs-stream.d.ts b/gridfs-stream/gridfs-stream.d.ts index 65b134a1d..e5b55c66d 100644 --- a/gridfs-stream/gridfs-stream.d.ts +++ b/gridfs-stream/gridfs-stream.d.ts @@ -55,8 +55,9 @@ declare module "gridfs-stream" { module g { export class Grid { + files: mongo.Collection; - collection: mongo.Collection; + collection(name?: string): mongo.Collection; createWriteStream(options?: GridFSStream.Options): GridFSStream.WriteStream; createReadStream(options?: GridFSStream.Options): GridFSStream.ReadStream;