We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version:
1.8.0-beta
Code
setFilesFromFileList(fileList: FileList) { for (let file of fileList) { } }
Expected behavior: No errors
Actual behavior:
error TS2495: Type 'FileList' is not an array type or a string type
The text was updated successfully, but these errors were encountered:
Are you targeting ES5? If so it's probably the problem described in #4031
EDIT: Actually #3164 describes the problem, and #4031 is a response to that
Sorry, something went wrong.
It seems FileList does not support iterator yet, so it won't work even on ES6 mode as of now.
FileList
[Exposed=Window,Worker] interface FileList { getter File? item(unsigned long index); readonly attribute unsigned long length; };
No branches or pull requests
TypeScript Version:
1.8.0-beta
Code
Expected behavior:
No errors
Actual behavior:
The text was updated successfully, but these errors were encountered: