Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gfx opened this issue Jul 31, 2018 · 1 comment
Closed

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

gfx opened this issue Jul 31, 2018 · 1 comment
Assignees
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue

Comments

@gfx
Copy link

gfx commented Jul 31, 2018

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

@mhegazy mhegazy added Bug A bug in TypeScript Fixed A PR has been merged for this issue Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet labels Jul 31, 2018
@mhegazy mhegazy self-assigned this Jul 31, 2018
@mhegazy mhegazy added this to the TypeScript 3.1 milestone Jul 31, 2018
@mhegazy mhegazy removed the Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet label Jul 31, 2018
@gfx
Copy link
Author

gfx commented Aug 1, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants