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