Skip to content

Commit 25e7783

Browse files
committed
Bugfix, thanks CI
1 parent d3dbba7 commit 25e7783

File tree

5 files changed

+18
-8
lines changed

5 files changed

+18
-8
lines changed

api-reports/2_12.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25614,7 +25614,7 @@ html[SO] def Media = HTMLMediaElement
2561425614
idb[SO] type CreateIndexOptions = IDBCreateIndexOptions
2561525615
idb[SO] type CreateObjectStoreOptions = IDBCreateObjectStoreOptions
2561625616
idb[SO] type CursorReadOnly[+Source] = IDBCursorReadOnly[Source]
25617-
idb[SO] type CursorWithValue = IDBCursorWithValue
25617+
idb[SO] type CursorWithValue[+Source] = IDBCursorWithValue[Source]
2561825618
idb[SO] type Cursor[+Source] = IDBCursor[Source]
2561925619
idb[SO] type Database = IDBDatabase
2562025620
idb[SO] type DatabaseInfo = IDBDatabaseInfo
@@ -25799,7 +25799,7 @@ raw[SO] type HTMLVideoElement = dom.HTMLVideoElement (@deprecated in 2.0.0)
2579925799
raw[SO] type HashChangeEvent = dom.HashChangeEvent (@deprecated in 2.0.0)
2580025800
raw[SO] type History = dom.History (@deprecated in 2.0.0)
2580125801
raw[SO] type IDBCursor = dom.IDBCursor[IDBObjectStore | IDBIndex] (@deprecated in 2.0.0)
25802-
raw[SO] type IDBCursorWithValue = dom.IDBCursorWithValue (@deprecated in 2.0.0)
25802+
raw[SO] type IDBCursorWithValue = dom.IDBCursorWithValue[Any] (@deprecated in 2.0.0)
2580325803
raw[SO] type IDBDatabase = dom.IDBDatabase (@deprecated in 2.0.0)
2580425804
raw[SO] type IDBEnvironment = dom.IDBEnvironment (@deprecated in 2.0.0)
2580525805
raw[SO] type IDBFactory = dom.IDBFactory (@deprecated in 2.0.0)

api-reports/2_13.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25614,7 +25614,7 @@ html[SO] def Media = HTMLMediaElement
2561425614
idb[SO] type CreateIndexOptions = IDBCreateIndexOptions
2561525615
idb[SO] type CreateObjectStoreOptions = IDBCreateObjectStoreOptions
2561625616
idb[SO] type CursorReadOnly[+Source] = IDBCursorReadOnly[Source]
25617-
idb[SO] type CursorWithValue = IDBCursorWithValue
25617+
idb[SO] type CursorWithValue[+Source] = IDBCursorWithValue[Source]
2561825618
idb[SO] type Cursor[+Source] = IDBCursor[Source]
2561925619
idb[SO] type Database = IDBDatabase
2562025620
idb[SO] type DatabaseInfo = IDBDatabaseInfo
@@ -25799,7 +25799,7 @@ raw[SO] type HTMLVideoElement = dom.HTMLVideoElement (@deprecated in 2.0.0)
2579925799
raw[SO] type HashChangeEvent = dom.HashChangeEvent (@deprecated in 2.0.0)
2580025800
raw[SO] type History = dom.History (@deprecated in 2.0.0)
2580125801
raw[SO] type IDBCursor = dom.IDBCursor[IDBObjectStore | IDBIndex] (@deprecated in 2.0.0)
25802-
raw[SO] type IDBCursorWithValue = dom.IDBCursorWithValue (@deprecated in 2.0.0)
25802+
raw[SO] type IDBCursorWithValue = dom.IDBCursorWithValue[Any] (@deprecated in 2.0.0)
2580325803
raw[SO] type IDBDatabase = dom.IDBDatabase (@deprecated in 2.0.0)
2580425804
raw[SO] type IDBEnvironment = dom.IDBEnvironment (@deprecated in 2.0.0)
2580525805
raw[SO] type IDBFactory = dom.IDBFactory (@deprecated in 2.0.0)

src/main/scala/org/scalajs/dom/IDBTypes.scala

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ class IDBIndex extends IDBStoreLike[IDBIndex] {
260260
* The cursor has a source that indicates which index or object store it is iterating. It has a position within the
261261
* range, and moves in a direction that is increasing or decreasing in the order of record keys. The cursor enables an
262262
* application to asynchronously process all the records in the cursor's range.
263+
*
264+
* @tparam S
265+
* The type of `.source`
263266
*/
264267
@js.native
265268
@JSGlobal
@@ -306,6 +309,9 @@ class IDBCursorReadOnly[+S] extends js.Object {
306309
* The cursor has a source that indicates which index or object store it is iterating. It has a position within the
307310
* range, and moves in a direction that is increasing or decreasing in the order of record keys. The cursor enables an
308311
* application to asynchronously process all the records in the cursor's range.
312+
*
313+
* @tparam S
314+
* The type of `.source`
309315
*/
310316
@js.native
311317
@JSGlobal
@@ -348,10 +354,14 @@ object IDBCursorDirection {
348354
@inline def nextunique: IDBCursorDirection = "nextunique".asInstanceOf[IDBCursorDirection]
349355
}
350356

351-
/** Same as IDBCursor with the value property. */
357+
/** Same as [[IDBCursor]] with the `value` property.
358+
*
359+
* @tparam S
360+
* The type of `.source`
361+
*/
352362
@js.native
353363
@JSGlobal
354-
class IDBCursorWithValue extends IDBCursor {
364+
class IDBCursorWithValue[+S] extends IDBCursor[S] {
355365
def value: IDBValue = js.native
356366
}
357367

src/main/scala/org/scalajs/dom/idb.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ object idb {
77
type CreateObjectStoreOptions = IDBCreateObjectStoreOptions
88
type Cursor[+Source] = IDBCursor[Source]
99
type CursorReadOnly[+Source] = IDBCursorReadOnly[Source]
10-
type CursorWithValue = IDBCursorWithValue
10+
type CursorWithValue[+Source] = IDBCursorWithValue[Source]
1111
type Database = IDBDatabase
1212
type DatabaseInfo = IDBDatabaseInfo
1313
type Event[+TargetResult] = IDBEvent[TargetResult]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ object raw {
483483
type IDBCursor = dom.IDBCursor[IDBObjectStore | IDBIndex]
484484

485485
@deprecated("use dom.IDBCursorWithValue instead", "2.0.0")
486-
type IDBCursorWithValue = dom.IDBCursorWithValue
486+
type IDBCursorWithValue = dom.IDBCursorWithValue[Any]
487487

488488
@deprecated("use dom.IDBDatabase instead", "2.0.0")
489489
type IDBDatabase = dom.IDBDatabase

0 commit comments

Comments
 (0)