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

fix: make keys optional in object parsing #134

Merged
merged 2 commits into from
Jun 26, 2022
Merged

fix: make keys optional in object parsing #134

merged 2 commits into from
Jun 26, 2022

Conversation

imranbarbhuiya
Copy link
Contributor

@imranbarbhuiya imranbarbhuiya commented Jun 23, 2022

This pr makes keys optional instead of | undefined.
This is a hacky solution, I've tried various ways for 1 hr but can't find a better way of doing it, so if anyone has a better solution then lmk.

Playground

src/lib/util-types.ts Outdated Show resolved Hide resolved
Co-authored-by: Jeroen Claassens <jeroen.claassens@live.nl>
@codecov-commenter
Copy link

Codecov Report

Merging #134 (cf5ac6e) into main (a1e1fa4) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head cf5ac6e differs from pull request most recent head eef6b93. Consider uploading reports for the commit eef6b93 to get more accurate results

@@           Coverage Diff           @@
##             main     #134   +/-   ##
=======================================
  Coverage   99.36%   99.36%           
=======================================
  Files          53       53           
  Lines        3009     3013    +4     
  Branches      770      770           
=======================================
+ Hits         2990     2994    +4     
  Misses         11       11           
  Partials        8        8           
Impacted Files Coverage Δ
src/validators/ObjectValidator.ts 97.76% <100.00%> (+0.03%) ⬆️

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 a1e1fa4...eef6b93. Read the comment docs.

@favna favna merged commit 57a3719 into sapphiredev:main Jun 26, 2022
@imranbarbhuiya imranbarbhuiya deleted the types/make-keys-optional branch June 26, 2022 15:49
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.

5 participants