mongochangestream
Version:
Sync MongoDB collections via change streams into any database.
11 lines (10 loc) • 310 B
TypeScript
import type { Cursor } from './types.js';
/**
* Get next record without throwing an exception.
* Get the last error safely via `getLastError`.
*/
export declare const safelyCheckNext: (cursor: Cursor) => {
getNext: () => Promise<any>;
errorExists: () => boolean;
getLastError: () => unknown;
};