Replace InjectFlags with options object
ProprietaryReplaces deprecated InjectFlags enum usage in inject(), Injector.get(), and TestBed.inject() calls with the corresponding options object. For example, injector.get(MyService, null, InjectFlags.Optional) becomes injector.get(MyService, null, { optional: true }).
org. openrewrite. angular. migration. replace-inject-flagsmod run . --recipe= org. openrewrite. angular. migration. replace-inject-flagsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.