From a44da1024dc39e2d2fef296fc1d4e5894090fce0 Mon Sep 17 00:00:00 2001
From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com>
Date: Sat, 13 Feb 2021 14:15:59 +0100
Subject: :zap: Config and database update
---
dist/util/Config.d.ts | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
(limited to 'dist/util/Config.d.ts')
diff --git a/dist/util/Config.d.ts b/dist/util/Config.d.ts
index 2ab792f5..1c6021c9 100644
--- a/dist/util/Config.d.ts
+++ b/dist/util/Config.d.ts
@@ -1,13 +1,21 @@
+///
+import { Schema, Document } from "mongoose";
import "missing-native-js-functions";
declare const _default: {
- init: (opts?: DefaultOptions) => Promise;
+ init: () => Promise;
getAll: () => DefaultOptions;
- setAll: (val: any) => any;
+ setAll: (val: any) => Promise;
};
export default _default;
-export interface DefaultOptions {
+export declare const DefaultOptions: {
+ api: {};
+ gateway: {};
+ voice: {};
+};
+export interface DefaultOptions extends Document {
api?: any;
gateway?: any;
voice?: any;
}
-export declare const DefaultOptions: DefaultOptions;
+export declare const ConfigSchema: Schema, import("mongoose").Model>, undefined>;
+export declare const ConfigModel: import("mongoose").Model;
--
cgit 1.5.1