Skip to content

error TS2495: Type 'FileList' is not an array type or a string type #7181

@Maks3w

Description

@Maks3w

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions