Given some interface:
interface IFoo {
userService: IUserService
authService: IAuthService
}
How do I retrieve IUserService and IAuthService via the following function:
function getInternalTypes<T>() {
// Need to loop through T (somehow) and extract those types, for example to do something like:
// IoCContainer.Resolve<K>(KString); // where K is the type IUserService and KString is the string "IUserService".
}
I know you can use keyof to get keys but not sure how I would go about getting the actual types for these keys (typeof? I don't know...)