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; }