Wrap a newable class/function in a factory function.
The argument types for the FactoryClass. Generally inferred.
The return type. Generally inferred.
The newable class/function.
A callable factory function.
Wrap a newable class/function in a factory function.