Ddfordp

i18n/23/add-namespace-type-annotation

No description available

Legacy
i18nbreaking changesv22.x.x to v23.0.0InterpolationOptions typeNamespacereact-i18next
Public
0 downloads
0 stars
How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

Modification of the InterpolationOptions type. In version 23.0.0, the ns property within InterpolationOptions is now constrained to be of type Namespace instead of being a string or a readonly string[]. This change requires you to adjust your code accordingly.

Example

Before

ts

After

ts

Ready to contribute?

Build your own codemod and share it with the community.