Skip to content

change DataTransfer.types property from DOMStringList to string[] #148

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 2 commits into from
Sep 29, 2016
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions TS.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ let rec DomTypeToTsType (objDomType: string) =
| "Date" -> "Date"
| "DOMHighResTimeStamp" -> "number"
| "DOMString" -> "string"
| "DOMStringList" -> "string[]"
| "DOMTimeStamp" -> "number"
| "EndOfStreamError" -> "number"
| "EventListener" -> "EventListenerOrEventListenerObject"
Expand Down
6 changes: 3 additions & 3 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,7 @@ interface DataTransfer {
effectAllowed: string;
readonly files: FileList;
readonly items: DataTransferItemList;
readonly types: DOMStringList;
readonly types: string[];
clearData(format?: string): boolean;
getData(format: string): string;
setData(format: string, data: string): boolean;
Expand Down Expand Up @@ -7584,7 +7584,7 @@ declare var IDBCursorWithValue: {

interface IDBDatabase extends EventTarget {
readonly name: string;
readonly objectStoreNames: DOMStringList;
readonly objectStoreNames: string[];
onabort: (this: this, ev: Event) => any;
onerror: (this: this, ev: ErrorEvent) => any;
version: number;
Expand Down Expand Up @@ -7650,7 +7650,7 @@ declare var IDBKeyRange: {
}

interface IDBObjectStore {
readonly indexNames: DOMStringList;
readonly indexNames: string[];
keyPath: string | string[];
readonly name: string;
readonly transaction: IDBTransaction;
Expand Down
4 changes: 2 additions & 2 deletions baselines/webworker.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ declare var IDBCursorWithValue: {

interface IDBDatabase extends EventTarget {
readonly name: string;
readonly objectStoreNames: DOMStringList;
readonly objectStoreNames: string[];
onabort: (this: this, ev: Event) => any;
onerror: (this: this, ev: ErrorEvent) => any;
version: number;
Expand Down Expand Up @@ -407,7 +407,7 @@ declare var IDBKeyRange: {
}

interface IDBObjectStore {
readonly indexNames: DOMStringList;
readonly indexNames: string[];
keyPath: string | string[];
readonly name: string;
readonly transaction: IDBTransaction;
Expand Down