fun <A0, R0 : Any, A1, R1 : Any> alias(targetKey: TypeKey<A0, R0>, newKey: TypeKey<A1, R1>, override: Boolean = false): Unit
Create an alias entry.
Be careful this method will not check if a type cast is possible.
targetKey - The TypeKey of an entry an alias should be created for.
newKey - The alias TypeKey.
override - If true this will override an existing factory of type newKey.
EntryNotFoundException - If targetKey entry doesn't exist.
WinterException - If newKey entry already exists and override is false.