-
-
Notifications
You must be signed in to change notification settings - Fork 502
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 IterableElement
type
#110
Conversation
Sounds like a useful type. Please make sure you adhere to https://github.com/sindresorhus/type-fest/blob/master/.github/contributing.md The indentation should be tab, not spaces, and see other types for the comment format to use. |
The filename should also be |
hope it's better now! |
You need to add it to the readme. |
|
No discussion AFAIK, I was looking for a type like |
use ticks for type names Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
#110 (comment) <<< |
Bump |
ah sorry man! I've been very busy lately! Added the type to the readme! ✌️ |
@sindresorhus bump :-) |
Thanks :) |
This type infers the element type of an Iterable or an AsyncIterable. Very useful! Especially for generators. Also, an array and many other things are iterators!