Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index access type #51

Merged
merged 5 commits into from Oct 25, 2021
Merged

Index access type #51

merged 5 commits into from Oct 25, 2021

Conversation

fabien0102
Copy link
Owner

Why

Add support for IndexAccessType

Closed #42

Note

Nested IndexAccessType are not supported yet, since this is a bit challenging, let’s deal with this in a following issue

@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2021

Codecov Report

Merging #51 (e5f85e3) into main (e5e4961) will decrease coverage by 1.36%.
The diff coverage is 94.81%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #51      +/-   ##
==========================================
- Coverage   98.49%   97.13%   -1.37%     
==========================================
  Files           8       10       +2     
  Lines         332      453     +121     
  Branches      102      148      +46     
==========================================
+ Hits          327      440     +113     
- Misses          5       10       +5     
- Partials        0        3       +3     
Impacted Files Coverage Δ
src/core/generateZodSchema.ts 95.36% <90.19%> (-1.85%) ⬇️
src/utils/resolveDefaultProperties.ts 95.23% <95.23%> (ø)
src/utils/resolveModules.ts 97.61% <97.61%> (ø)
src/core/generate.ts 100.00% <100.00%> (ø)
src/core/jsDocTags.ts 98.46% <100.00%> (-1.54%) ⬇️
src/core/validateGeneratedTypes.ts 97.43% <100.00%> (+0.06%) ⬆️

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 47616ec...e5f85e3. Read the comment docs.

@fabien0102 fabien0102 merged commit 2b28266 into main Oct 25, 2021
@fabien0102 fabien0102 deleted the index-access-type branch October 25, 2021 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to generate zod objects from IndexedAccessType
2 participants