You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The playground does not have a way to set compiler options, e.g. target, or --lib. it is similar to microsoft/TypeScript#18209.
The long term solution is to make it configurable. as a short term fix i will add the latest lib file.
Activity
mhegazy commentedon Apr 2, 2018
The playground does not have a way to set compiler options, e.g. target, or
--lib. it is similar to microsoft/TypeScript#18209.The long term solution is to make it configurable. as a short term fix i will add the latest lib file.
justjake commentedon Apr 12, 2019
Bump: it can't find
AsyncIterableIterator:reports
Error: Cannot find global type AsyncIterableIterator'.https://www.typescriptlang.org/play/#src=async%20function*%20generate()%20%7B%0D%0A%20%20%20%20yield%200%0D%0A%20%20%20%20yield%201%0D%0A%20%20%20%20yield%202%0D%0A%7D%0D%0A%0D%0Atype%20Returned%20%3D%20ReturnType%3Ctypeof%20generate%3E
saarw commentedon Oct 22, 2019
Also getting 'Cannot find name "AsyncGenerator"'
orta commentedon Mar 10, 2021
Setting the target to ESNext works with all these samples out of the box o the playground 👍🏻