There is a change to generic type interface of rest.method() calls. This codemod puts the generic arguments in the correct order to keep type safety.
WARNING
This codemod runs .fixUnusedIdentifiers() on a target source file. This would remove any unused declarations in the file. This is due to the atomicity of this codemod, which blindly inserts the callback structure into each msw handler callback and then cleans up the variables that are not used anymore.
Before
ts
After
ts
Before
ts
After
ts
Before
ts
After
ts
Before
ts
After
ts