Skip to content

Commit 5dd737b

Browse files
authored
Merge pull request #250 from markschaake/fix-data-transfer-types_#249
Correct the type of DataTransfer#types.
2 parents ead7ea8 + 9487372 commit 5dd737b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/main/scala/org/scalajs/dom/raw/lib.scala

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3817,12 +3817,17 @@ trait DataTransfer extends js.Object {
38173817
def getData(format: String): String = js.native
38183818

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

38273832
def files: FileList = js.native
38283833
}

0 commit comments

Comments
 (0)