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

Add Expand type #678

Closed
olalonde opened this issue Sep 3, 2023 · 2 comments
Closed

Add Expand type #678

olalonde opened this issue Sep 3, 2023 · 2 comments

Comments

@olalonde
Copy link

olalonde commented Sep 3, 2023

Would you be open to adding this type?

type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;

It's useful for debugging types in an IDE.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • The funding will be given to active contributors.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@sindresorhus
Copy link
Owner

Isn't this just Simplify?

@olalonde
Copy link
Author

olalonde commented Sep 4, 2023

Oops, missed that one and SimplifyDeep.

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

No branches or pull requests

2 participants