An upcoming change made for TypeScript 3.6 is the addition of stricter generator types. Since dtslint depends on typescript@next, that means this change has started applying to our integration tests--even though we don't build on or run TS 3.6 yet (it's not released!).
This means integration tests are currently broken.
x in one of the [ ])x in each of the [ ])Hey @clavin 馃憢
I'm interested in taking this on if you or others haven't started working on it yet!
@copperwall 馃憢 I've actually looked into it in my own branch, and I'd love to share what I've found here:
--installAll// TypeScript Version: 3.3
// ...
// $ExpectType AsyncIterator<WebAPICallResult>
web.paginate('conversations.list');
I'd love to have a different set of eyes to see if I'm missing anything, though! 馃憖
This is actually a very puzzling error. So long as multiple versions of TypeScript are being tested, since the type changes between versions, the AsyncIterator type will always be wrong in one or the other 馃槙
So the only fix I can suggest for something like this is to pick one or the other & change the test command to target a specific TypeScript installation. 馃槚馃し鈥嶁檧
I tried taking a look at dtslint and the differences in the 3.6 release but I'm pretty stumped with this one. It's kind of a bummer that dtslint always tracks typescript@next, but it looks like there's some issues on their repo asking them not to. 馃し鈥嶁檪
Anyways, I'm glad your PR resolves things for now. I'm pretty new to TypeScript, so it didn't occur to me that creating a new interface that extends AsyncIterator
That doc comment is really helpful too.
Most helpful comment
Hey @clavin 馃憢
I'm interested in taking this on if you or others haven't started working on it yet!