File tree 1 file changed +5
-2
lines changed
src/main/scala/org/scalajs/dom/raw
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 10
10
package org .scalajs .dom .raw
11
11
12
12
import scala .scalajs .js
13
+ import scala .scalajs .js .|
13
14
import scala .scalajs .js .annotation ._
14
15
15
16
/**
@@ -123,7 +124,7 @@ class IDBObjectStore extends js.Object {
123
124
}
124
125
125
126
trait IDBVersionChangeEventInit extends EventInit {
126
- var newVersion : js.UndefOr [Int ] = js.undefined
127
+ var newVersion : js.UndefOr [Int | Null ] = js.undefined
127
128
var oldVersion : js.UndefOr [Int ] = js.undefined
128
129
}
129
130
@@ -142,9 +143,11 @@ class IDBVersionChangeEvent(typeArg: String,
142
143
/**
143
144
* Returns the new version of the database.
144
145
*
146
+ * This is null when the database is being deleted.
147
+ *
145
148
* MDN
146
149
*/
147
- def newVersion : Int = js.native
150
+ def newVersion : Int | Null = js.native
148
151
149
152
/**
150
153
* Returns the old version of the database.
You can’t perform that action at this time.
0 commit comments