From 4f88e6e808166800db83c127e516bfb57f2be33d Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 31 Mar 2024 14:41:01 +0300 Subject: [PATCH] Change component type to enum --- @types/Client.d.ts | 3 +-- src/client/interfaces/Component.ts | 7 ++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/@types/Client.d.ts b/@types/Client.d.ts index 2a1f02f..a21811f 100644 --- a/@types/Client.d.ts +++ b/@types/Client.d.ts @@ -1,4 +1,5 @@ import { LoggerClientOptions } from '@navy.gif/logger'; +import { ComponentType } from '../src/client/interfaces/Component.ts'; export type ClientOptions = { // Set by the startup script @@ -10,8 +11,6 @@ export type ClientOptions = { developmentMode: boolean, } -export type ComponentType = 'EDIT ME'; - export type ComponentOptions = { type: ComponentType, name: string, diff --git a/src/client/interfaces/Component.ts b/src/client/interfaces/Component.ts index 0a3ec1c..b19e233 100644 --- a/src/client/interfaces/Component.ts +++ b/src/client/interfaces/Component.ts @@ -1,6 +1,11 @@ -import { ComponentOptions, ComponentType } from '../../../@types/Client.js'; +import { ComponentOptions } from '../../../@types/Client.js'; import Client from '../Client.js'; +export enum ComponentType +{ + EDIT_ME +} + /** * Superclass for all components used by the client, all commands, endpoints, etc should inherit from this * @date 3/31/2024 - 1:39:51 PM