Aarshcodemod

fastify/4/url-params-optional

No description available

Legacy
fastify4migration
Public
14 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

This codemod declares the optional parameters explicitly.

🚦 Impact Level: Minimal

What Changed

If you've already used any implicitly optional parameters, you'll get a 404 error when trying to access the route. You will now need to declare the optional parameters explicitly.

Before

jsx

After

jsx

Ready to contribute?

Build your own codemod and share it with the community.