Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(NODE-3609): correct listDatabases return type #2986

Merged
merged 2 commits into from Sep 24, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/operations/list_databases.ts
Expand Up @@ -7,7 +7,12 @@ import type { Db } from '../db';
import type { ClientSession } from '../sessions';

/** @public */
export type ListDatabasesResult = string[] | Document[];
export interface ListDatabasesResult {
databases: ({ name: string; sizeOnDisk?: number; empty?: boolean } & Document)[];
totalSize?: number;
totalSizeMb?: number;
ok: 1 | 0;
}

/** @public */
export interface ListDatabasesOptions extends CommandOperationOptions {
Expand Down