joi-to-typescript
joi-to-typescript copied to clipboard
Map output file and type name to custom string
Adding possibility to map types and file names with a mapping function to allow different naming schemas.
E.g., by us, we uppercase the first letter of the exported variable name and add Types
suffix to the filename.
Codecov Report
Merging #84 (b81e8df) into master (3439265) will decrease coverage by
0.26%
. The diff coverage is90.00%
.
@@ Coverage Diff @@
## master #84 +/- ##
==========================================
- Coverage 98.53% 98.27% -0.27%
==========================================
Files 7 7
Lines 342 347 +5
Branches 107 108 +1
==========================================
+ Hits 337 341 +4
- Misses 5 6 +1
Impacted Files | Coverage Δ | |
---|---|---|
src/types.ts | 100.00% <ø> (ø) |
|
src/analyseSchemaFile.ts | 98.14% <80.00%> (-1.86%) |
:arrow_down: |
src/index.ts | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 3439265...b81e8df. Read the comment docs.
Another good looking change, I'll check it out too
I forgot to say I have had a look at this and I like the idea, I have branched of this and added some tests to it and made the custom function do a bit more. I had some issues getting the code back to github, I'll try working on it again.
Can we go back to this idea? I'd gladly help, if any help needed here
yes, I still think this is a great idea. here is the branch I started based on this code https://github.com/mrjono1/joi-to-typescript/compare/master...name-function I can't remember what I was doing here