diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 8c2e30ac3..449ece679 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -10370,17 +10370,16 @@ declare var Storage: { } interface StorageEvent extends Event { - key: string; - newValue: any; - oldValue: any; - storageArea: Storage; url: string; - initStorageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, keyArg: string, oldValueArg: any, newValueArg: any, urlArg: string, storageAreaArg: Storage): void; + key?: string; + oldValue?: string; + newValue?: string; + storageArea?: Storage; } declare var StorageEvent: { prototype: StorageEvent; - new(): StorageEvent; + new (type: string, eventInitDict?: StorageEventInit): StorageEvent; } interface StyleMedia { @@ -12580,6 +12579,14 @@ interface XMLHttpRequestEventTarget { addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } +interface StorageEventInit extends EventInit { + key?: string; + oldValue?: string; + newValue?: string; + url: string; + storageArea?: Storage; +} + interface IDBObjectStoreParameters { keyPath?: string | string[]; autoIncrement?: boolean; diff --git a/inputfiles/addedTypes.json b/inputfiles/addedTypes.json index a3c8dffac..9eac7fa3a 100644 --- a/inputfiles/addedTypes.json +++ b/inputfiles/addedTypes.json @@ -1,4 +1,32 @@ [ + { + "kind": "interface", + "name": "StorageEventInit", + "flavor": "Web", + "extends": "EventInit", + "properties": [ + { + "name": "key?", + "type": "string" + }, + { + "name": "oldValue?", + "type": "string" + }, + { + "name": "newValue?", + "type": "string" + }, + { + "name": "url", + "type": "string" + }, + { + "name": "storageArea?", + "type": "Storage" + } + ] + }, { "kind": "interface", "name": "IDBObjectStoreParameters", @@ -308,5 +336,29 @@ "interface": "HTMLCanvasElement", "name": "toBlob", "signatures": ["toBlob(): Blob"] + }, + { + "kind": "property", + "interface": "StorageEvent", + "name": "key?", + "type": "string" + }, + { + "kind": "property", + "interface": "StorageEvent", + "name": "oldValue?", + "type": "string" + }, + { + "kind": "property", + "interface": "StorageEvent", + "name": "newValue?", + "type": "string" + }, + { + "kind": "property", + "interface": "StorageEvent", + "name": "storageArea?", + "type": "Storage" } ] diff --git a/inputfiles/overridingTypes.json b/inputfiles/overridingTypes.json index 0bb36a983..56a6f5ebe 100644 --- a/inputfiles/overridingTypes.json +++ b/inputfiles/overridingTypes.json @@ -312,5 +312,12 @@ "kind": "indexer", "interface": "DataTransferItemList", "signatures": ["[index: number]: DataTransferItem"] + }, + { + "kind": "constructor", + "interface": "StorageEvent", + "signatures": [ + "new (type: string, eventInitDict?: StorageEventInit): StorageEvent" + ] } ] diff --git a/inputfiles/removedTypes.json b/inputfiles/removedTypes.json index 2618224c8..77cd4f4e7 100644 --- a/inputfiles/removedTypes.json +++ b/inputfiles/removedTypes.json @@ -18,5 +18,30 @@ "kind": "method", "interface": "HTMLElement", "name": "contains" + }, + { + "kind": "method", + "interface": "StorageEvent", + "name": "initStorageEvent" + }, + { + "kind": "property", + "interface": "StorageEvent", + "name": "key" + }, + { + "kind": "property", + "interface": "StorageEvent", + "name": "oldValue" + }, + { + "kind": "property", + "interface": "StorageEvent", + "name": "newValue" + }, + { + "kind": "property", + "interface": "StorageEvent", + "name": "storageArea" } ]