-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue