sindresorhus / is

Type check values
MIT License
1.68k stars 109 forks source link

Fix `is.iterable` and `is.asyncIterable` TypeScript types #149

Closed sdotson closed 2 years ago

sdotson commented 2 years ago

Fixes https://github.com/sindresorhus/is/issues/128

Also added is.iterableIterator.

sindresorhus commented 2 years ago

From the issue:

And asyncIterable should be fixed too.

sindresorhus commented 2 years ago

Also added is.iterableIterator.

I'm not sure I see the use-case for this one. And if there is one, it should be a separate pull request.

sdotson commented 2 years ago

Thank you for the feedback. I think I've addressed it with the latest commit, but let me know if there are further concerns.