forked from mikhail-angelov/mongo-unit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
29 lines (21 loc) · 715 Bytes
/
index.d.ts
File metadata and controls
29 lines (21 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
declare module 'mongo-unit' {
/**
* @returns Url to connect to the created db.
*/
export function start(opts?: Partial<MongodOptions>): Promise<string>;
export function stop(): Promise<void>;
export function getUrl(): string;
export function load(data: object): Promise<void>;
export function clear(data: object): Promise<void>;
export function drop(): Promise<void>;
export function initDb(data: object): Promise<void>;
export function dropDb(): Promise<void>;
export interface MongodOptions {
port: number;
dbName: string;
dbpath: string;
verbose: boolean;
version: string;
useReplicaSet?: boolean;
}
}