Closed
Description
TypeScript Version:
- 3.5.1
- 3.6.0-dev.20190601
Search Terms: async, await, polyfill, csproj, TypeScriptLib
Code
tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "none",
"lib": ["dom", "es5", "es2015.promise"],
"strict": true,
}
}
a.ts
// empty
Expected behavior:
> npx typescript@3.4.5
// ok
Actual behavior:
> npx typescript@3.5.1
../path/typescript/lib/lib.es2015.promise.d.ts:129:21 - error TS2304: Cannot find name 'Iterable'.
129 race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
~~~~~~~~
Found 1 error.
Playground Link: None
Related Issues: Not found.
Workaround:
Add "es2015.iterable" to lib