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

NonEmptyObject #621

Closed
kkmuffme opened this issue May 17, 2023 · 3 comments · Fixed by #623
Closed

NonEmptyObject #621

kkmuffme opened this issue May 17, 2023 · 3 comments · Fixed by #623
Labels
help wanted Extra attention is needed type addition

Comments

@kkmuffme
Copy link
Contributor

kkmuffme commented May 17, 2023

Opposite of https://github.com/sindresorhus/type-fest/blob/main/source/empty-object.d.ts (as this would used way more often than EmptyObject for us at least) which ensures that an object contains at least 1 key

Useful for e.g. updates, where all keys are optional, but there must be at least 1 key.

@sindresorhus
Copy link
Owner

👍

@sindresorhus
Copy link
Owner

If anyone wants to work on this, see the initial attempt here: #623

kkmuffme added a commit to kkmuffme/type-fest that referenced this issue Aug 8, 2023
@kkmuffme
Copy link
Contributor Author

@sindresorhus #623 is completed. Could you please merge it?

kkmuffme added a commit to kkmuffme/type-fest that referenced this issue Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed type addition
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants