Remove guard and resolver interfaces
ProprietaryRemoves CanLoad, CanMatch, CanActivate, CanDeactivate, CanActivateChild, and Resolve from implements clauses and drops their imports. Angular 15.2 deprecated these interfaces because a route can inject the class and call any method it likes. Uses in type position are left alone. Matches the guard-and-resolve-interfaces schematic.
org. openrewrite. angular. migration. remove-guard-and-resolve-interfacesmod run . --recipe= org. openrewrite. angular. migration. remove-guard-and-resolve-interfacesInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.