From 65567e417c935ff37830995fbbb370b47b0dc1a2 Mon Sep 17 00:00:00 2001 From: nikeee13 Date: Wed, 28 Aug 2013 22:53:33 +0200 Subject: [PATCH] Add class documentation links --- mongodb/mongodb.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mongodb/mongodb.d.ts b/mongodb/mongodb.d.ts index 15791a8e5..e9177f96e 100644 --- a/mongodb/mongodb.d.ts +++ b/mongodb/mongodb.d.ts @@ -5,6 +5,7 @@ /// declare module "mongodb" { + // Class documentation : http://mongodb.github.io/node-mongodb-native/api-generated/mongoclient.html export class MongoClient{ constructor(serverConfig: any, options: any); @@ -13,9 +14,12 @@ declare module "mongodb" { static connect(uri: string, callback: (err: any, db: Db) => void); } + // Class documentation : http://mongodb.github.io/node-mongodb-native/api-generated/server.html export class Server { constructor (host: string, port: number, opts?: ServerOptions); } + + // Class documentation : http://mongodb.github.io/node-mongodb-native/api-generated/db.html export class Db { constructor (databaseName: string, serverConfig: Server, db_options?: DBOptions); @@ -97,6 +101,7 @@ declare module "mongodb" { public addListener(event: string, handler:(param: any) => any); } + // Class documentation : http://mongodb.github.io/node-mongodb-native/api-bson-generated/objectid.html export class ObjectID { constructor (s: string); }