1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-23 03:01:34 +02:00
server/dist/util/Config.d.ts

22 lines
728 B
TypeScript
Raw Normal View History

2021-02-13 14:15:59 +01:00
/// <reference path="MongoBigInt.d.ts" />
import { Schema, Document } from "mongoose";
2021-02-05 16:14:17 +01:00
import "missing-native-js-functions";
declare const _default: {
2021-02-13 14:15:59 +01:00
init: () => Promise<import("mongodb").UpdateWriteOpResult>;
2021-02-05 16:14:17 +01:00
getAll: () => DefaultOptions;
2021-02-13 14:15:59 +01:00
setAll: (val: any) => Promise<import("mongodb").UpdateWriteOpResult>;
2021-02-05 16:14:17 +01:00
};
export default _default;
2021-02-13 14:15:59 +01:00
export declare const DefaultOptions: {
api: {};
gateway: {};
voice: {};
};
export interface DefaultOptions extends Document {
2021-02-05 16:20:34 +01:00
api?: any;
gateway?: any;
voice?: any;
2021-02-05 16:14:17 +01:00
}
2021-02-13 14:15:59 +01:00
export declare const ConfigSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>;
export declare const ConfigModel: import("mongoose").Model<DefaultOptions>;