Skip to content

DataTransferItemList's iterator should yield DataTransferItem, not File #26074

@gfx

Description

@gfx

Pathces to lib.dom.iterable.d.ts are like this:

 interface DataTransferItemList {
-    [Symbol.iterator](): IterableIterator<File>;
+    [Symbol.iterator](): IterableIterator<DataTransferItem>;
 }

TypeScript Version: 3.0.1 (installed from npm)

Search Terms: DataTransferItem

Code

Expected behavior:

DataTransferItemList#[Symbol.iterator]() should yield DataTransferItem.

Actual behavior:

DataTransferItemList#[Symbol.iterator]() yields File.

Playground Link:

Related Issues:

#6106

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions