-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
QuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code
Description
TypeScript Version: 3.6.2
Search Terms: iterableiterator iterator
Code
declare function getIterator(): IterableIterator<number>;
const iter = getIterator()
const { value } = iter.next()
Expected behavior:
value: number
(TS 3.5)
Actual behavior:
value: any
Playground Link:
NOTE: Playground is running TS 3.5 and exhibits "Expected behavior"
http://www.typescriptlang.org/play/#code/CYUwxgNghgTiAEAzArgOzAFwJYHtXwHMQMBJDEGKDHGACgEoAueMiqAIwhFcupgB5UyALbsKAPgDcAKDB4AzhnhZyMeAF5CxHlRoNZCpQG94ANygRkCAL4blqgHSoQADwz6gA
Related Issues:
Requiemu, calinburloiu, ikokostya, papb, SukkaW and 14 morechpioJohnrobmillerJohnrobmillerbrainkim, Requiemu, johnameyer, papb, SukkaW and 1 more
Metadata
Metadata
Assignees
Labels
QuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code