mrjono1 / joi-to-typescript

Convert Joi Schemas to TypeScript interfaces
MIT License
125 stars 39 forks source link

Option to use double quotes (") as escape character #476

Closed yegortokmakov closed 1 month ago

yegortokmakov commented 1 month ago

Our team is using double quotes for strings and we have to manually edit generated interfaces to pass our linter. This PR adds Settings.doublequoteEscape which will use double quotes in generated interfaces if set to true. Default behavior stays unchanged.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.52%. Comparing base (2cb6f45) to head (abc3501). Report is 56 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #476 +/- ## ========================================== + Coverage 98.48% 98.52% +0.03% ========================================== Files 9 9 Lines 661 676 +15 Branches 266 264 -2 ========================================== + Hits 651 666 +15 Misses 10 10 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

mrjono1 commented 1 month ago

change released https://github.com/mrjono1/joi-to-typescript/releases/tag/4.14.0

mrjono1 commented 1 month ago

Thankyou for the contribution

yegortokmakov commented 1 month ago

thanks @mrjono1 !