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

feat(types): DistributiveOmit 타입 추가 #647

Merged
merged 1 commit into from
Dec 28, 2024
Merged

Conversation

ssi02014
Copy link
Contributor

Overview

feat(types): DistributiveOmit 타입 추가

type Union = { a: string } | { b: number }
type Result = DistributiveOmit<Union, 'a'>
// 동작 원리와 순서
// 1. Result = DistributiveOmit<Union, 'a'>
// 2. Result = Omit<{ a: string }, 'a'> | Omit<{ b: number }, 'a'>
// 3. Result = {} | { b: number }

PR Checklist

  • All tests pass.
  • All type checks pass.
  • I have read the Contributing Guide document.
    Contributing Guide

@ssi02014 ssi02014 added the @modern-kit/types @modern-kit/types label Dec 28, 2024
@ssi02014 ssi02014 self-assigned this Dec 28, 2024
Copy link

changeset-bot bot commented Dec 28, 2024

🦋 Changeset detected

Latest commit: 81073a3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@modern-kit/types Minor
@modern-kit/utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ssi02014 ssi02014 merged commit ac6da6e into main Dec 28, 2024
2 checks passed
@ssi02014 ssi02014 deleted the feat/distributive branch December 28, 2024 10:17
Copy link

codecov bot commented Dec 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.19%. Comparing base (33cf068) to head (81073a3).
Report is 133 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #647      +/-   ##
==========================================
+ Coverage   97.41%   98.19%   +0.78%     
==========================================
  Files         164      173       +9     
  Lines        1470     1555      +85     
  Branches      361      407      +46     
==========================================
+ Hits         1432     1527      +95     
+ Misses         34       26       -8     
+ Partials        4        2       -2     
Components Coverage Δ
@modern-kit/react 96.95% <ø> (+1.73%) ⬆️
@modern-kit/utils 99.59% <ø> (-0.41%) ⬇️

@github-actions github-actions bot mentioned this pull request Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@modern-kit/types @modern-kit/types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant