Skip to content

Correct the type of DataTransfer#types. #250

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

Merged
merged 1 commit into from
Nov 18, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/main/scala/org/scalajs/dom/raw/lib.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3817,12 +3817,17 @@ trait DataTransfer extends js.Object {
def getData(format: String): String = js.native

/**
* Holds a list of the format types of the data that is stored for the first item, in the
* same order the data was added. An empty list will be returned if no data was added.
* An array of the drag data formats (as strings) that were set in the dragstart event.
*
* The order of the formats is the same order as the data included in the drag operation.
*
* The formats are Unicode strings giving the type or format of the data, generally given by a
* MIME type. Some values that are not MIME types are special-cased for legacy reasons
* (for example "text").
*
* MDN
*/
def types: DOMStringList = js.native
def types: js.Array[String] = js.native

def files: FileList = js.native
}
Expand Down