aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/Stat.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/models/Stat.ts')
-rw-r--r--src/lib/models/Stat.ts19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/lib/models/Stat.ts b/src/lib/models/Stat.ts
index 89fc00f..a6e8f19 100644
--- a/src/lib/models/Stat.ts
+++ b/src/lib/models/Stat.ts
@@ -1,4 +1,4 @@
-import { DataTypes, Sequelize } from 'sequelize';
+import { DataTypes, type Sequelize } from 'sequelize';
import { BaseModel } from './BaseModel';
import { jsonBigint } from './__helpers';
@@ -14,16 +14,17 @@ export interface StatModelCreationAttributes {
commandsUsed?: bigint;
}
-// declaration merging so that the fields don't override Sequelize's getters
-export interface Stat {
- /** The bot's environment. */
- environment: Environment;
+export class Stat extends BaseModel<StatModel, StatModelCreationAttributes> implements StatModel {
+ /**
+ * The bot's environment.
+ */
+ public declare environment: Environment;
- /** The number of commands used */
- commandsUsed: bigint;
-}
+ /**
+ * The number of commands used
+ */
+ public declare commandsUsed: bigint;
-export class Stat extends BaseModel<StatModel, StatModelCreationAttributes> implements StatModel {
public static initModel(sequelize: Sequelize): void {
Stat.init(
{