add generic type (I give up on generated types for now)

This commit is contained in:
mierenmanz 2021-04-28 21:28:30 +02:00
parent 1c9d17263b
commit 9d6feaff8d
1 changed files with 2 additions and 4 deletions

View File

@ -1,12 +1,10 @@
import { MessageMentions } from '../structures/messageMentions.ts'
export type CommandArgumentMatchTypes = 'flag' | 'mention' | 'content' | 'rest'
export interface Args {
export interface Args<T = unknown> {
name: string
match: CommandArgumentMatchTypes
// Still needs to be implemented
// type?: unknown
defaultValue?: unknown
defaultValue?: T
flag?: string
}