diff --git a/TS.fsx b/TS.fsx index 30720c269..0e40b9032 100644 --- a/TS.fsx +++ b/TS.fsx @@ -28,6 +28,7 @@ let rec DomTypeToTsType (objDomType: string) = | "Date" -> "Date" | "DOMHighResTimeStamp" -> "number" | "DOMString" -> "string" + | "DOMStringList" -> "string[]" | "DOMTimeStamp" -> "number" | "EndOfStreamError" -> "number" | "EventListener" -> "EventListenerOrEventListenerObject" diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 41e6bdb5c..4dec46aa5 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -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; @@ -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; @@ -7650,7 +7650,7 @@ declare var IDBKeyRange: { } interface IDBObjectStore { - readonly indexNames: DOMStringList; + readonly indexNames: string[]; keyPath: string | string[]; readonly name: string; readonly transaction: IDBTransaction; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 3c49e4f0b..f1d40bf9b 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -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; @@ -407,7 +407,7 @@ declare var IDBKeyRange: { } interface IDBObjectStore { - readonly indexNames: DOMStringList; + readonly indexNames: string[]; keyPath: string | string[]; readonly name: string; readonly transaction: IDBTransaction;