change all object types to interface

This commit is contained in:
Ean Milligan 2025-05-03 08:52:21 -04:00
parent 69f95bf701
commit bd8f7c8a6f
2 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
import dbClient from 'db/client.ts';
type UserIdObj = {
interface UserIdObj {
userid: bigint;
};
}
// List of userIds who have requested that the bot ignore them
export const ignoreList: Array<bigint> = [];

8
src/mod.d.ts vendored
View File

@ -1,14 +1,14 @@
// EmojiConf is used as a structure for the emojis stored in config.ts
export type EmojiConf = {
export interface EmojiConf {
name: string;
aliases: string[];
id: string;
animated: boolean;
deleteSender: boolean;
};
}
// PastCommandCount is used in calculating the hourly rate of commands
export type PastCommandCount = {
export interface PastCommandCount {
command: string;
count: number;
};
}