From d42c7e25f743c928986821fa555015bce87e2ba1 Mon Sep 17 00:00:00 2001 From: John Alfaro Date: Wed, 28 Oct 2015 13:58:48 -0400 Subject: [PATCH] #6487 - gridfs-stream.d.ts - Support for findOne and curCol Added declarat --- gridfs-stream/gridfs-stream.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gridfs-stream/gridfs-stream.d.ts b/gridfs-stream/gridfs-stream.d.ts index a8ad5f9ed..7dc355daf 100644 --- a/gridfs-stream/gridfs-stream.d.ts +++ b/gridfs-stream/gridfs-stream.d.ts @@ -52,6 +52,7 @@ declare module "gridfs-stream" { files: mongo.Collection; collection(name?: string): mongo.Collection; + curCol: string; createWriteStream(options?: GridFSStream.Options): GridFSStream.WriteStream; createReadStream(options?: GridFSStream.Options): GridFSStream.ReadStream; @@ -60,6 +61,7 @@ declare module "gridfs-stream" { remove(options: GridFSStream.Options, callback: (err: Error) => void): void; exist(options: GridFSStream.Options, callback: (err: Error, found: boolean) => void): void; + findOne(options: GridFSStream.Options, callback: (err: Error, record: any)=>void):void; } }