From 9d6feaff8d1375d018bffd176f38407aed91caff Mon Sep 17 00:00:00 2001 From: mierenmanz Date: Wed, 28 Apr 2021 21:28:30 +0200 Subject: [PATCH] add generic type (I give up on generated types for now) --- src/utils/command.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/utils/command.ts b/src/utils/command.ts index 24ab22c..4e963ee 100644 --- a/src/utils/command.ts +++ b/src/utils/command.ts @@ -1,12 +1,10 @@ import { MessageMentions } from '../structures/messageMentions.ts' export type CommandArgumentMatchTypes = 'flag' | 'mention' | 'content' | 'rest' -export interface Args { +export interface Args { name: string match: CommandArgumentMatchTypes - // Still needs to be implemented - // type?: unknown - defaultValue?: unknown + defaultValue?: T flag?: string }