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(core): add Subtract type #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

wzc520pyfm
Copy link
Owner

Add new Type: Subtract<T, U>.

It will from T remove properties that exist in U.

Example:

type Prop = { name: string; age: number; visible: boolean }
type DefaultProps = { age: number; sex: string }

// Expect: { name: string; visible: boolean }
type SubtractProp = Subtract<Prop, DefaultProps>

Copy link

netlify bot commented Jan 15, 2024

Deploy Preview for eloquent-froyo-e3f28b ready!

Name Link
🔨 Latest commit 2c24694
🔍 Latest deploy log https://app.netlify.com/sites/eloquent-froyo-e3f28b/deploys/65b4e945850ec90008902071
😎 Deploy Preview https://deploy-preview-11--eloquent-froyo-e3f28b.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@wzc520pyfm wzc520pyfm added the ready to merge PR review passed, ready to merge. label Jan 27, 2024
@wzc520pyfm
Copy link
Owner Author

maybe has better name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge PR review passed, ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant