ReferenceTypes
ArgValue<T, C>
type ArgValue<T, C> = T extends "string" ? string : T extends "integer" | "number" ? number : T extends "boolean" ? boolean : T extends "choice" ? C : T extends "contact" ? Contact : T extends "channel" ? Channel : T extends "role" ? Role : never;Defined in: packages/client/src/commands/args.ts:9
The parsed TypeScript type for an argument of a given ArgType (and its choice union C).
Type Parameters
T
T extends ArgType
C
C extends string = string