-
-
Notifications
You must be signed in to change notification settings - Fork 544
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
Improve documentation of IterableElement
type & add tests for using with Set
#894
Conversation
I think you can already use the |
Oh! I feel dumb missing this one. You're right, Least I can do is update examples of Especially this mention: type-fest/source/iterable-element.d.ts Line 36 in e75dbe1
Because I think is too hidden, at least for people like me. Hopefully not too many 😅 |
👍 And also here: https://github.com/sindresorhus/type-fest?tab=readme-ov-file#alternative-type-names Should probably add |
SetKeys
typeIterableElement
type & add tests for using with Set
Added a new type
SetKeys
which is a helper to quickly infer the type of keys from a strongly typedSet
orReadonlySet
.