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): Merge, Invert, NegativeNumber 타입 추가 #645

Merged
merged 1 commit into from
Dec 28, 2024
Merged

Conversation

ssi02014
Copy link
Contributor

@ssi02014 ssi02014 commented Dec 28, 2024

Overview

feat(types): Merge, Invert, NegativeNumber 타입 추가 및 한글화/테스트 코드 추가

Merge

type A = { a: string, b: number }
type B = { b: string, c: boolean }
type Result = Merge<A, B> // { a: string, b: string, c: boolean }

NegativeNumber

type validNegativeNumber = NegativeNumber<-1>; // -1
type invalidNegativeNumber = NegativeNumber<1>;  // never

Invert

type originObj = { a: "x", b: "y" };
type invertedObj = Invert<origin>; // { x: "a", y: "b" }

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: 092bb7b

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 linked an issue Dec 28, 2024 that may be closed by this pull request
2 tasks
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 (092bb7b).
Report is 132 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #645      +/-   ##
==========================================
+ 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%) ⬇️

@ssi02014 ssi02014 merged commit 1aa0e45 into main Dec 28, 2024
3 checks passed
@github-actions github-actions bot mentioned this pull request Dec 28, 2024
@ssi02014 ssi02014 deleted the feat/invert branch December 28, 2024 10:17
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.

[Feature]: Invert 타입 추가
1 participant