mongoe
Version:
MongoDB driver with relational functionalities
7 lines (6 loc) • 346 B
TypeScript
import { ObjectId } from "mongodb";
export { ObjectId };
export declare function idify(str: null | undefined): null;
export declare function idify(str: string): ObjectId;
export declare function idify(str: string | null | undefined): ObjectId | null;
export declare function substractKeys<T>(keys: Array<T>, alreadyDeleted: Array<T>): T[];