Skip to content

[3.5.1] Iterable is missing in lib.es2015.promise.d.ts #31722

Closed
@Rouden

Description

@Rouden

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

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions