Skip to content

Commit 28503dc

Browse files
authored
Merge pull request #308 from fdietze/storageevent-types
Fix oldValue and newValue types for StorageEvent
2 parents 7872c5d + 7c0916d commit 28503dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5976,15 +5976,15 @@ class StorageEvent extends Event {
59765976
*
59775977
* MDN
59785978
*/
5979-
def oldValue: js.Any = js.native
5979+
def oldValue: String = js.native
59805980

59815981
/**
59825982
* The new value of the key. The newValue is null when the change has been invoked by
59835983
* storage clear() method or the key has been removed from the storage. Read only.
59845984
*
59855985
* MDN
59865986
*/
5987-
def newValue: js.Any = js.native
5987+
def newValue: String = js.native
59885988

59895989
/**
59905990
* The URL of the document whose key changed. Read only.
@@ -6016,8 +6016,8 @@ class StorageEvent extends Event {
60166016
*/
60176017
@deprecated("Non-standard", "forever")
60186018
def initStorageEvent(typeArg: String, canBubbleArg: Boolean,
6019-
cancelableArg: Boolean, keyArg: String, oldValueArg: js.Any,
6020-
newValueArg: js.Any, urlArg: String,
6019+
cancelableArg: Boolean, keyArg: String, oldValueArg: String,
6020+
newValueArg: String, urlArg: String,
60216021
storageAreaArg: Storage): Unit = js.native
60226022
}
60236023

0 commit comments

Comments
 (0)