mrjono1 / joi-to-typescript

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

Fix an edge case where the user does not pass ANY content to the `alternatives` function. #411

Closed cmaster11 closed 7 months ago

cmaster11 commented 7 months ago

In the official docs: If no schemas are added, the type will not match any value except for undefined.

codecov[bot] commented 7 months ago

Codecov Report

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

Comparison is base (3893e96) 98.79% compared to head (4ac7175) 98.80%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #411 +/- ## ========================================== + Coverage 98.79% 98.80% +0.01% ========================================== Files 9 9 Lines 580 585 +5 Branches 224 226 +2 ========================================== + Hits 573 578 +5 Misses 7 7 ```

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