I have a type
type GetArgumentsType<T extends CreateSlashCommand['options']> = {
[K in keyof T]:
T[K]['required'] extends true ? ArgType<T[K]['type']> : Partial<ArgType<T[K]['type']>>
};
Is it possible to do something like this if T[K]['type'] === ApplicationCommandOptionTypes.SubCommand remove K from interface and using recursion trigger GetArgumentsType<T[K]['options']>??