Skip to content

DataTransfer#types is incorrectly typed #249

@markschaake

Description

@markschaake

Noticed this as a runtime error. The offending line of code is here, which is:

def types: DOMStringList = js.native

I believe it should be instead:

def types: js.Array[DOMString] = js.native

See the w3c spec, and the MDN docs which both state the type is a string array.

I'll issue a PR shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions