← All recipes
Moderne licensed

Rename Message interface to ToastMessageOptions

Recipe IDorg.openrewrite.primeng.RenameMessageInterfaceArtifact@openrewrite/recipes-angular

Renames the Message interface import from primeng/api to ToastMessageOptions and updates all identifier usages. The Message interface was renamed in PrimeNG 18 due to name collision with the Message component.

Composite 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.primeng.RenameMessageInterface

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-angular

Definition

This recipe runs the following recipes in order.