Skip to content

Conversation

@steve-aom-elliott
Copy link
Contributor

@steve-aom-elliott steve-aom-elliott commented Nov 17, 2025

What's changed?

Added type field to OptionDescriptor for JS/TS while not needing it to be set on the @Option annotation itself and instead retrieve the type of the field using reflect-metadata.

What's your motivation?

Unlike the Java recipes, the TS/JS recipes were unable to provide information on the type of an option that was part of a recipe.

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

…ging the `@Option` annotation to use the interface without said field for simplifying usage.
@steve-aom-elliott steve-aom-elliott moved this from In Progress to Ready to Review in OpenRewrite Nov 18, 2025
@steve-aom-elliott steve-aom-elliott marked this pull request as ready for review November 18, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request javascript

Projects

Status: Ready to Review

Development

Successfully merging this pull request may close these issues.

2 participants