This codemod replaces feature flags with a static value provided by the user.
Codemod replaces useFlag hook calls.
The codemod accepts the following arguments:
- key: The key of the feature flag to be replaced.
- value: The value to replace the feature flag with.
- type: The type to which the provided value should be cast.
Example
Before
ts
After
ts