Find pathMatch route properties that may need type narrowing
Recipe ID
org.openrewrite.angular.search.find-path-match-type-usageArtifact@openrewrite/recipes-angularFinds pathMatch property assignments in route configurations. In Angular 14, the pathMatch type was narrowed from string to 'full' | 'prefix'. Routes defined as plain objects without explicit Route or Routes typing may fail type checking.
Single recipeProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.angular.search.find-path-match-type-usageIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angular