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: DeepPartial 유틸 타입 추가 #667

Merged
merged 1 commit into from
Jan 10, 2025
Merged

feat: DeepPartial 유틸 타입 추가 #667

merged 1 commit into from
Jan 10, 2025

Conversation

ssi02014
Copy link
Contributor

@ssi02014 ssi02014 commented Jan 10, 2025

Overview

feat: DeepEqual 유틸 타입 추가

DeepEqual

객체의 모든 속성을 선택적(optional)으로 만드는 타입
중첩된 객체의 경우에도 재귀적으로 모든 속성을 선택적으로 변환합니다.

interface User {
  name: string;
  age: number;
  address: {
    street: string;
    city: string;
  };
};

type PartialUser = DeepPartial<User>;
// {
//   name?: string;
//   age?: number;
//   address?: {
//     street?: string;
//     city?: string;
//   };
// }

PR Checklist

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

@ssi02014 ssi02014 added feature 새로운 기능 추가 @modern-kit/types @modern-kit/types labels Jan 10, 2025
@ssi02014 ssi02014 self-assigned this Jan 10, 2025
Copy link

changeset-bot bot commented Jan 10, 2025

🦋 Changeset detected

Latest commit: adc3a5d

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

This PR includes changesets to release 1 package
Name Type
@modern-kit/types Minor

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 Jan 10, 2025 that may be closed by this pull request
2 tasks
@ssi02014 ssi02014 merged commit 2ecdfd1 into main Jan 10, 2025
2 checks passed
@ssi02014 ssi02014 deleted the feat/DeepPartial branch January 10, 2025 15:16
@ssi02014 ssi02014 changed the title feat: DeepEqual 유틸 타입 추가 feat: DeepPartial 유틸 타입 추가 Jan 10, 2025
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.21%. Comparing base (33cf068) to head (adc3a5d).
Report is 148 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #667      +/-   ##
==========================================
+ Coverage   97.41%   98.21%   +0.80%     
==========================================
  Files         164      180      +16     
  Lines        1470     1628     +158     
  Branches      361      433      +72     
==========================================
+ Hits         1432     1599     +167     
+ Misses         34       27       -7     
+ Partials        4        2       -2     
Components Coverage Δ
@modern-kit/react 96.95% <ø> (+1.73%) ⬆️
@modern-kit/utils 99.50% <ø> (-0.50%) ⬇️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 새로운 기능 추가 @modern-kit/types @modern-kit/types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: DeepPartial
1 participant