Add generic type to ModuleWithProviders

Proprietary

Adds the required generic type parameter to bare ModuleWithProviders return types. Angular 10 requires ModuleWithProviders<T> where T is the NgModule type. The module type is inferred from the ngModule property in the return statement.

org.openrewrite.angular.migration.add-module-with-providers-generic
mod run . --recipe=org.openrewrite.angular.migration.add-module-with-providers-generic

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.