mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 20:02:05 +08:00
Fix top level declaration
This commit is contained in:
committed by
GitHub
parent
f80a0dc0d9
commit
b10b81eb21
2
types/mongodb/index.d.ts
vendored
2
types/mongodb/index.d.ts
vendored
@@ -15,7 +15,7 @@ import { ObjectID } from 'bson';
|
||||
import { EventEmitter } from 'events';
|
||||
import { Readable, Writable } from "stream";
|
||||
|
||||
namespace MongoDB {
|
||||
declare namespace MongoDB {
|
||||
export function connect(uri: string, callback: MongoCallback<Db>): void;
|
||||
export function connect(uri: string, options?: MongoClientOptions): Promise<Db>;
|
||||
export function connect(uri: string, options: MongoClientOptions, callback: MongoCallback<Db>): void;
|
||||
|
||||
Reference in New Issue
Block a user