Maps an injectable class with a resolve function to an equivalent ResolveFn for use in a Route definition.
ResolveFn
Route
function mapToResolve<T>( provider: Type<Resolve<T>>): ResolveFn<T>;