summary refs log tree commit diff
path: root/dist/util/Database.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'dist/util/Database.d.ts')
-rw-r--r--dist/util/Database.d.ts29
1 files changed, 0 insertions, 29 deletions
diff --git a/dist/util/Database.d.ts b/dist/util/Database.d.ts
deleted file mode 100644
index 766efaef..00000000
--- a/dist/util/Database.d.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-/// <reference types="node" />
-import "./MongoBigInt";
-import mongoose, { Collection } from "mongoose";
-import { ChangeStream, ChangeEvent } from "mongodb";
-import EventEmitter from "events";
-declare const _default: mongoose.Connection;
-export default _default;
-export interface MongooseCache {
-    on(event: "delete", listener: (id: string) => void): this;
-    on(event: "change", listener: (data: any) => void): this;
-    on(event: "insert", listener: (data: any) => void): this;
-    on(event: "close", listener: () => void): this;
-}
-export declare class MongooseCache extends EventEmitter {
-    collection: Collection;
-    pipeline: Array<Record<string, unknown>>;
-    opts: {
-        onlyEvents: boolean;
-    };
-    stream: ChangeStream;
-    data: any;
-    constructor(collection: Collection, pipeline: Array<Record<string, unknown>>, opts: {
-        onlyEvents: boolean;
-    });
-    init: () => Promise<void>;
-    convertResult: (obj: any) => any;
-    change: (doc: ChangeEvent) => boolean | Promise<any> | undefined;
-    destroy: () => Promise<any> | undefined;
-}