From 464fc05c1c203cc7f33cd4703f622539c8ebce13 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Tue, 17 May 2022 20:25:57 -0500 Subject: [PATCH] refactor: Why is that not assignable bruh --- src/handler/plugins/plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handler/plugins/plugin.ts b/src/handler/plugins/plugin.ts index 15d75e9..0c8ec51 100644 --- a/src/handler/plugins/plugin.ts +++ b/src/handler/plugins/plugin.ts @@ -36,7 +36,6 @@ export type CommandPlugin = Override = Override, controller: Controller) => Awaitable>; }>; @@ -48,6 +47,7 @@ export function plugins(...plug: CommandPlugin[]) { type ModuleNoPlugins = ValueOf<{ [T in keyof ModuleDefs] : Omit }> +//TODO: I WANT BETTER TYPINGS AHHHHHHHHHHHHHHH export function sernModule( plugins: (CommandPlugin)[], mod : ModuleNoPlugins @@ -56,4 +56,4 @@ export function sernModule( plugins, ...mod }; -} +} \ No newline at end of file