This is totally not necessary, but I want to know if types can be assigned dynamically to interfaces.
Suppose I have the following interface:
interface UserAuth {
username: string;
password: string;
auth0: SomeOtherAuthInterface;
}
Obviously, if auth0 is set, then there's no need for a password (maybe there is but let's just assume there's not) and vice versa. Is there a way to type that?