Type Alias: InputParser()<T, CONTEXT>
InputParser<
T
,CONTEXT
>: (this
,input
) =>T
|Promise
<T
>
Generic function that synchronously or asynchronously parses a string to an arbitrary type.
Type Parameters
• T
• CONTEXT extends CommandContext
= CommandContext
Parameters
• this: CONTEXT
• input: string
Returns
T
| Promise
<T
>