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' | ||||
| 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 | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue