From 3e06f9db97b1115d16e989774573a23baacffdce Mon Sep 17 00:00:00 2001 From: MARCROCK22 <57925328+MARCROCK22@users.noreply.github.com> Date: Fri, 22 Mar 2024 20:25:03 -0400 Subject: [PATCH] stop crying --- src/commands/applications/options.ts | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/commands/applications/options.ts b/src/commands/applications/options.ts index 03e512b..6809f24 100644 --- a/src/commands/applications/options.ts +++ b/src/commands/applications/options.ts @@ -84,16 +84,11 @@ export function createAttachmentOption = T extends MiddlewareContext< - any, - CommandContext | MenuCommandContext | UserCommandInteraction> -> - ? T - : MiddlewareContext< - T, - CommandContext | MenuCommandContext | UserCommandInteraction> - >; - -export function createMiddleware>(data: ParseMiddlewareType) { +export function createMiddleware< + T = any, + C extends CommandContext | MenuCommandContext | UserCommandInteraction> = + | CommandContext + | MenuCommandContext | UserCommandInteraction>, +>(data: MiddlewareContext) { return data; }