1
0
Fork 0

Definitions inside methods

refactor/models
Bsian 2020-06-09 12:56:14 +01:00
parent d534ea163d
commit 52351fd8e4
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
4 changed files with 64 additions and 64 deletions

View File

@ -22,7 +22,7 @@ export interface AccountInterface extends Document {
authTag: Buffer
}
const Account: Schema = new Schema({
const Account = new Schema<AccountInterface>({
username: String,
userID: String,
homepath: String,

View File

@ -13,7 +13,7 @@ export interface DomainInterface extends Document {
enabled: true
}
const Domain: Schema = new Schema({
const Domain = new Schema<DomainInterface>({
account: Object,
domain: String,
port: Number,

View File

@ -21,7 +21,7 @@ export interface ModerationInterface extends Document {
}
}
const Moderation: Schema = new Schema({
const Moderation = new Schema<ModerationInterface>({
username: String,
userID: String,
logID: String,

View File

@ -12,7 +12,7 @@ export interface TierInterface extends Tiers, Document {
id: number;
}
const Tier: Schema = new Schema({
const Tier = new Schema<TierInterface>({
id: Number,
resourceLimits: {
ram: Number,