add generic type (I give up on generated types for now)
This commit is contained in:
parent
1c9d17263b
commit
9d6feaff8d
1 changed files with 2 additions and 4 deletions
|
@ -1,12 +1,10 @@
|
||||||
import { MessageMentions } from '../structures/messageMentions.ts'
|
import { MessageMentions } from '../structures/messageMentions.ts'
|
||||||
export type CommandArgumentMatchTypes = 'flag' | 'mention' | 'content' | 'rest'
|
export type CommandArgumentMatchTypes = 'flag' | 'mention' | 'content' | 'rest'
|
||||||
|
|
||||||
export interface Args {
|
export interface Args<T = unknown> {
|
||||||
name: string
|
name: string
|
||||||
match: CommandArgumentMatchTypes
|
match: CommandArgumentMatchTypes
|
||||||
// Still needs to be implemented
|
defaultValue?: T
|
||||||
// type?: unknown
|
|
||||||
defaultValue?: unknown
|
|
||||||
flag?: string
|
flag?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue