mrjono1 / joi-to-typescript

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

Introduce the defaultInterfaceSuffix setting #376

Closed cmaster11 closed 9 months ago

cmaster11 commented 9 months ago

If defined, when a schema name ends with "schema", replaces the ending in the generated type by default with this string.

E.g. when this setting is "Interface", a TestSchema object generates a TestInterface type.

codecov[bot] commented 9 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

Comparison is base (6011c9e) 98.68% compared to head (028ea7a) 98.69%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #376 +/- ## ======================================= Coverage 98.68% 98.69% ======================================= Files 9 9 Lines 532 535 +3 Branches 205 206 +1 ======================================= + Hits 525 528 +3 Misses 7 7 ``` | [Files](https://app.codecov.io/gh/mrjono1/joi-to-typescript/pull/376?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jono) | Coverage Δ | | |---|---|---| | [src/joiUtils.ts](https://app.codecov.io/gh/mrjono1/joi-to-typescript/pull/376?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jono#diff-c3JjL2pvaVV0aWxzLnRz) | `100.00% <100.00%> (ø)` | | | [src/types.ts](https://app.codecov.io/gh/mrjono1/joi-to-typescript/pull/376?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jono#diff-c3JjL3R5cGVzLnRz) | `100.00% <ø> (ø)` | |

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

mrjono1 commented 9 months ago

Looks good

mrjono1 commented 9 months ago

https://github.com/mrjono1/joi-to-typescript/releases/tag/4.9.0