The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/definitions/MinimongoCollection.ts

14 lines
394 B

import type { Mongo } from 'meteor/mongo';
import type { Document } from 'mongodb';
export type MinimongoCollection<T extends Document> = Mongo.Collection<T> & {
_collection: Mongo.Collection<T> & {
queries: Record<string, unknown>;
_docs: {
_idStringify: (id: string) => string;
_map: Map<string, T>;
};
_recomputeResults: (query: unknown) => void;
};
queries: unknown[];
};