@@ -13530,32 +13530,43 @@ HttpMethod[SO] val PATCH: HttpMethod
13530
13530
HttpMethod[SO] val POST: HttpMethod
13531
13531
HttpMethod[SO] val PUT: HttpMethod
13532
13532
HttpMethod[SO] val QUERY: HttpMethod
13533
+ IDBCreateIndexOptions[JT] var locale: js.UndefOr[String]
13534
+ IDBCreateIndexOptions[JT] var multiEntry: js.UndefOr[Boolean]
13535
+ IDBCreateIndexOptions[JT] var unique: js.UndefOr[Boolean]
13536
+ IDBCreateObjectStoreOptions[JT] val autoIncrement: js.UndefOr[Boolean]
13537
+ IDBCreateObjectStoreOptions[JT] val keyPath: Any
13533
13538
IDBCursor[JC] def advance(count: Int): Unit
13534
- IDBCursor[JC] def continue(key: js. Any?): Unit
13535
- IDBCursor[JC] def delete(): IDBRequest
13539
+ IDBCursor[JC] def continue(key: Any = ?? ?): Unit
13540
+ IDBCursor[JC] def delete(): IDBRequest[Unit]
13536
13541
IDBCursor[JC] def direction: IDBCursorDirection
13537
- IDBCursor[JC] def key: js. Any
13542
+ IDBCursor[JC] def key: Any
13538
13543
IDBCursor[JC] def primaryKey: js.Any
13539
13544
IDBCursor[JC] def source: js.Any
13540
- IDBCursor[JC] def update(value: js.Any): IDBRequest
13545
+ IDBCursor[JC] def update(value: js.Any): IDBRequest[Any]
13541
13546
IDBCursorDirection[JT]
13542
13547
IDBCursorDirection[SO] val NEXT: IDBCursorDirection
13543
13548
IDBCursorDirection[SO] val NEXT_UNIQUE: IDBCursorDirection
13544
13549
IDBCursorDirection[SO] val PREV: IDBCursorDirection
13545
13550
IDBCursorDirection[SO] val PREV_UNIQUE: IDBCursorDirection
13551
+ IDBCursorReadOnly[JC] def advance(count: Int): Unit
13552
+ IDBCursorReadOnly[JC] def continue(key: Any = ???): Unit
13553
+ IDBCursorReadOnly[JC] def direction: IDBCursorDirection
13554
+ IDBCursorReadOnly[JC] def key: Any
13555
+ IDBCursorReadOnly[JC] def primaryKey: js.Any
13556
+ IDBCursorReadOnly[JC] def source: js.Any
13546
13557
IDBCursorWithValue[JC] def advance(count: Int): Unit
13547
- IDBCursorWithValue[JC] def continue(key: js. Any?): Unit
13548
- IDBCursorWithValue[JC] def delete(): IDBRequest
13558
+ IDBCursorWithValue[JC] def continue(key: Any = ?? ?): Unit
13559
+ IDBCursorWithValue[JC] def delete(): IDBRequest[Unit]
13549
13560
IDBCursorWithValue[JC] def direction: IDBCursorDirection
13550
- IDBCursorWithValue[JC] def key: js. Any
13561
+ IDBCursorWithValue[JC] def key: Any
13551
13562
IDBCursorWithValue[JC] def primaryKey: js.Any
13552
13563
IDBCursorWithValue[JC] def source: js.Any
13553
- IDBCursorWithValue[JC] def update(value: js.Any): IDBRequest
13564
+ IDBCursorWithValue[JC] def update(value: js.Any): IDBRequest[Any]
13554
13565
IDBCursorWithValue[JC] def value: js.Any
13555
13566
IDBDatabase[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit
13556
13567
IDBDatabase[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit
13557
13568
IDBDatabase[JC] def close(): Unit
13558
- IDBDatabase[JC] def createObjectStore(name: String, optionalParameters: js.Any ?): IDBObjectStore
13569
+ IDBDatabase[JC] def createObjectStore(name: String, optionalParameters: js.UndefOr[IDBCreateObjectStoreOptions] ?): IDBObjectStore
13559
13570
IDBDatabase[JC] def deleteObjectStore(name: String): Unit
13560
13571
IDBDatabase[JC] def dispatchEvent(evt: Event): Boolean
13561
13572
IDBDatabase[JC] def name: String
@@ -13567,20 +13578,42 @@ IDBDatabase[JC] def removeEventListener[T <: Event](`type`: String, listener: js
13567
13578
IDBDatabase[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit
13568
13579
IDBDatabase[JC] def transaction(storeNames: js.Any, mode: IDBTransactionMode?): IDBTransaction
13569
13580
IDBDatabase[JC] def version: Int
13581
+ IDBDatabaseInfo[JT] val name: String
13582
+ IDBDatabaseInfo[JT] val version: Int
13570
13583
IDBEnvironment[JT] def indexedDB: IDBFactory (@deprecated in 1.2.0)
13584
+ IDBEvent[JC] def bubbles: Boolean
13585
+ IDBEvent[JC] def cancelBubble: Boolean
13586
+ IDBEvent[JC] def cancelable: Boolean
13587
+ IDBEvent[JC] def currentTarget: EventTarget
13588
+ IDBEvent[JC] def defaultPrevented: Boolean
13589
+ IDBEvent[JC] def eventPhase: Int
13590
+ IDBEvent[JC] def isTrusted: Boolean
13591
+ IDBEvent[JC] def preventDefault(): Unit
13592
+ IDBEvent[JC] def stopImmediatePropagation(): Unit
13593
+ IDBEvent[JC] def stopPropagation(): Unit
13594
+ IDBEvent[JC] def target: EventTarget
13595
+ IDBEvent[JC] override def target: IDBEventTarget[A]
13596
+ IDBEvent[JC] def timeStamp: Double
13597
+ IDBEvent[JC] def `type`: String
13598
+ IDBEventTarget[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit
13599
+ IDBEventTarget[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit
13600
+ IDBEventTarget[JC] def dispatchEvent(evt: Event): Boolean
13601
+ IDBEventTarget[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit
13602
+ IDBEventTarget[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit
13603
+ IDBEventTarget[JC] def result: A
13571
13604
IDBFactory[JC] def cmp(first: js.Any, second: js.Any): Int
13572
- IDBFactory[JC] def deleteDatabase(name: String ): IDBOpenDBRequest
13573
- IDBFactory[JC] def open (name: String): IDBOpenDBRequest
13574
- IDBFactory[JC] def open(name: String, version: Int): IDBOpenDBRequest
13575
- IDBIndex[JC] def count(): IDBRequest
13576
- IDBIndex[JC] def count(key: js. Any): IDBRequest
13577
- IDBIndex[JC] def get(key: js. Any): IDBRequest
13578
- IDBIndex[JC] def getKey(key: js. Any): IDBRequest
13605
+ IDBFactory[JC] def databases( ): js.Promise[js.Array[IDBDatabaseInfo]]
13606
+ IDBFactory[JC] def deleteDatabase (name: String): IDBOpenDBRequest[Unit]
13607
+ IDBFactory[JC] def open(name: String, version: Int? ): IDBOpenDBRequest[IDBDatabase]
13608
+ IDBIndex[JC] def count(): IDBRequest[Double]
13609
+ IDBIndex[JC] def count(key: Any): IDBRequest[Double]
13610
+ IDBIndex[JC] def get(key: Any): IDBRequest[js.Any]
13611
+ IDBIndex[JC] def getKey(key: Any): IDBRequest[js.UndefOr[js.Any]]
13579
13612
IDBIndex[JC] def keyPath: String
13580
13613
IDBIndex[JC] def name: String
13581
13614
IDBIndex[JC] def objectStore: IDBObjectStore
13582
- IDBIndex[JC] def openCursor(range: IDBKeyRange?, direction: IDBCursorDirection?): IDBRequest
13583
- IDBIndex[JC] def openKeyCursor(range: IDBKeyRange?, direction: IDBCursorDirection?): IDBRequest
13615
+ IDBIndex[JC] def openCursor(range: IDBKeyRange?, direction: IDBCursorDirection?): IDBRequest[IDBCursor]
13616
+ IDBIndex[JC] def openKeyCursor(range: IDBKeyRange?, direction: IDBCursorDirection?): IDBRequest[IDBCursorReadOnly]
13584
13617
IDBIndex[JC] def unique: Boolean
13585
13618
IDBKeyRange[JC] def lower: js.Any
13586
13619
IDBKeyRange[JC] def lowerOpen: Boolean
@@ -13590,48 +13623,48 @@ IDBKeyRange[JO] def bound(lower: js.Any, upper: js.Any, lowerOpen: Boolean?, upp
13590
13623
IDBKeyRange[JO] def lowerBound(bound: js.Any, open: Boolean?): IDBKeyRange
13591
13624
IDBKeyRange[JO] def only(value: js.Any): IDBKeyRange
13592
13625
IDBKeyRange[JO] def upperBound(bound: js.Any, open: Boolean?): IDBKeyRange
13593
- IDBObjectStore[JC] def add(value: js.Any, key: js. Any?): IDBRequest
13594
- IDBObjectStore[JC] def clear(): IDBRequest
13595
- IDBObjectStore[JC] def count(key: js. Any?): IDBRequest
13596
- IDBObjectStore[JC] def createIndex(name: String, keyPath: String , optionalParameters: js.Any ?): IDBIndex
13597
- IDBObjectStore[JC] def delete(key: js. Any): IDBRequest
13626
+ IDBObjectStore[JC] def add(value: js.Any, key: Any?): IDBRequest[Any]
13627
+ IDBObjectStore[JC] def clear(): IDBRequest[Unit]
13628
+ IDBObjectStore[JC] def count(key: Any?): IDBRequest[Double]
13629
+ IDBObjectStore[JC] def createIndex(name: String, keyPath: Any , optionalParameters: IDBCreateIndexOptions ?): IDBIndex
13630
+ IDBObjectStore[JC] def delete(key: Any): IDBRequest[Unit]
13598
13631
IDBObjectStore[JC] def deleteIndex(indexName: String): Unit
13599
- IDBObjectStore[JC] def get(key: js. Any): IDBRequest
13600
- IDBObjectStore[JC] def getAll(query: js.UndefOr[IDBKeyRange | js. Any]?, count: js.UndefOr[Int]?): IDBRequest
13601
- IDBObjectStore[JC] def getAllKeys(query: js.UndefOr[IDBKeyRange | js. Any]?, count: js.UndefOr[Int]?): IDBRequest
13602
- IDBObjectStore[JC] def getKey(key: js. Any): IDBRequest
13632
+ IDBObjectStore[JC] def get(key: Any): IDBRequest[js.Any]
13633
+ IDBObjectStore[JC] def getAll(query: js.UndefOr[IDBKeyRange | Any]?, count: js.UndefOr[Int]?): IDBRequest[js.Array[js.Any]]
13634
+ IDBObjectStore[JC] def getAllKeys(query: js.UndefOr[IDBKeyRange | Any]?, count: js.UndefOr[Int]?): IDBRequest[js.Array[Any]]
13635
+ IDBObjectStore[JC] def getKey(key: Any): IDBRequest[js.UndefOr[Any]]
13603
13636
IDBObjectStore[JC] def index(name: String): IDBIndex
13604
13637
IDBObjectStore[JC] def indexNames: DOMStringList
13605
13638
IDBObjectStore[JC] def keyPath: String
13606
13639
IDBObjectStore[JC] def name: String
13607
- IDBObjectStore[JC] def openCursor(range: js.UndefOr[IDBKeyRange | js. Any]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest
13608
- IDBObjectStore[JC] def openKeyCursor(range: js.UndefOr[IDBKeyRange | js. Any]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest
13609
- IDBObjectStore[JC] def put(value: js.Any, key: js. Any?): IDBRequest
13640
+ IDBObjectStore[JC] def openCursor(range: js.UndefOr[IDBKeyRange | Any]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[IDBCursor]
13641
+ IDBObjectStore[JC] def openKeyCursor(range: js.UndefOr[IDBKeyRange | Any]?, direction: js.UndefOr[IDBCursorDirection]?): IDBRequest[IDBCursorReadOnly]
13642
+ IDBObjectStore[JC] def put(value: js.Any, key: Any?): IDBRequest[Any]
13610
13643
IDBObjectStore[JC] def transaction: IDBTransaction
13611
13644
IDBOpenDBRequest[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit
13612
13645
IDBOpenDBRequest[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit
13613
13646
IDBOpenDBRequest[JC] def dispatchEvent(evt: Event): Boolean
13614
13647
IDBOpenDBRequest[JC] def error: DOMException
13615
13648
IDBOpenDBRequest[JC] var onblocked: js.Function1[IDBVersionChangeEvent, _]
13616
13649
IDBOpenDBRequest[JC] var onerror: js.Function1[Event, _]
13617
- IDBOpenDBRequest[JC] var onsuccess: js.Function1[Event , _]
13650
+ IDBOpenDBRequest[JC] var onsuccess: js.Function1[IDBEvent[A] , _]
13618
13651
IDBOpenDBRequest[JC] var onupgradeneeded: js.Function1[IDBVersionChangeEvent, _]
13619
13652
IDBOpenDBRequest[JC] def readyState: String
13620
13653
IDBOpenDBRequest[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit
13621
13654
IDBOpenDBRequest[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit
13622
- IDBOpenDBRequest[JC] def result: js.Any
13655
+ IDBOpenDBRequest[JC] def result: A
13623
13656
IDBOpenDBRequest[JC] def source: js.Any
13624
13657
IDBOpenDBRequest[JC] def transaction: IDBTransaction
13625
13658
IDBRequest[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit
13626
13659
IDBRequest[JC] def addEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit
13627
13660
IDBRequest[JC] def dispatchEvent(evt: Event): Boolean
13628
13661
IDBRequest[JC] def error: DOMException
13629
13662
IDBRequest[JC] var onerror: js.Function1[Event, _]
13630
- IDBRequest[JC] var onsuccess: js.Function1[Event , _]
13663
+ IDBRequest[JC] var onsuccess: js.Function1[IDBEvent[A] , _]
13631
13664
IDBRequest[JC] def readyState: String
13632
13665
IDBRequest[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit
13633
13666
IDBRequest[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit
13634
- IDBRequest[JC] def result: js.Any
13667
+ IDBRequest[JC] def result: A
13635
13668
IDBRequest[JC] def source: js.Any
13636
13669
IDBRequest[JC] def transaction: IDBTransaction
13637
13670
IDBTransaction[JC] def abort(): Unit
@@ -13648,9 +13681,9 @@ IDBTransaction[JC] var onerror: js.Function1[Event, _]
13648
13681
IDBTransaction[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], options: EventListenerOptions): Unit
13649
13682
IDBTransaction[JC] def removeEventListener[T <: Event](`type`: String, listener: js.Function1[T, _], useCapture: Boolean?): Unit
13650
13683
IDBTransactionMode[JT]
13651
- IDBTransactionMode[SO] val READ_ONLY : IDBTransactionMode
13652
- IDBTransactionMode[SO] val READ_WRITE : IDBTransactionMode
13653
- IDBTransactionMode[SO] val VERSION_CHANGE : IDBTransactionMode
13684
+ IDBTransactionMode[SO] val readonly : IDBTransactionMode
13685
+ IDBTransactionMode[SO] val readwrite : IDBTransactionMode
13686
+ IDBTransactionMode[SO] val versionchange : IDBTransactionMode
13654
13687
IDBVersionChangeEvent[JC] def bubbles: Boolean
13655
13688
IDBVersionChangeEvent[JC] def cancelBubble: Boolean
13656
13689
IDBVersionChangeEvent[JC] def cancelable: Boolean
@@ -13664,6 +13697,7 @@ IDBVersionChangeEvent[JC] def preventDefault(): Unit
13664
13697
IDBVersionChangeEvent[JC] def stopImmediatePropagation(): Unit
13665
13698
IDBVersionChangeEvent[JC] def stopPropagation(): Unit
13666
13699
IDBVersionChangeEvent[JC] def target: EventTarget
13700
+ IDBVersionChangeEvent[JC] override def target: IDBEventTarget[A]
13667
13701
IDBVersionChangeEvent[JC] def timeStamp: Double
13668
13702
IDBVersionChangeEvent[JC] def `type`: String
13669
13703
IDBVersionChangeEventInit[JT] var bubbles: js.UndefOr[Boolean]
@@ -25561,16 +25595,22 @@ html[SO] type UList = HTMLUListElement
25561
25595
html[SO] type Unknown = HTMLUnknownElement
25562
25596
html[SO] type Video = HTMLVideoElement
25563
25597
html[SO] def Media = HTMLMediaElement
25598
+ idb[SO] type CreateIndexOptions = IDBCreateIndexOptions
25599
+ idb[SO] type CreateObjectStoreOptions = IDBCreateObjectStoreOptions
25564
25600
idb[SO] type Cursor = IDBCursor
25601
+ idb[SO] type CursorReadOnly = IDBCursorReadOnly
25565
25602
idb[SO] type CursorWithValue = IDBCursorWithValue
25566
25603
idb[SO] type Database = IDBDatabase
25604
+ idb[SO] type DatabaseInfo = IDBDatabaseInfo
25567
25605
idb[SO] type Environment = IDBEnvironment (@deprecated in 1.2.0)
25606
+ idb[SO] type EventTarget[+A] = IDBEventTarget[A]
25607
+ idb[SO] type Event[+A] = IDBEvent[A]
25568
25608
idb[SO] type Factory = IDBFactory
25569
25609
idb[SO] type Index = IDBIndex
25570
25610
idb[SO] type KeyRange = IDBKeyRange
25571
25611
idb[SO] type ObjectStore = IDBObjectStore
25572
- idb[SO] type OpenDBRequest = IDBOpenDBRequest
25573
- idb[SO] type Request = IDBRequest
25612
+ idb[SO] type OpenDBRequest[A] = IDBOpenDBRequest[A]
25613
+ idb[SO] type Request[A] = IDBRequest[A]
25574
25614
idb[SO] type Transaction = IDBTransaction
25575
25615
idb[SO] type VersionChangeEvent = IDBVersionChangeEvent
25576
25616
idb[SO] def CursorDirection = IDBCursorDirection
@@ -25744,8 +25784,8 @@ raw[SO] type IDBFactory = dom.IDBFactory (@deprecated in 2.0.0)
25744
25784
raw[SO] type IDBIndex = dom.IDBIndex (@deprecated in 2.0.0)
25745
25785
raw[SO] type IDBKeyRange = dom.IDBKeyRange (@deprecated in 2.0.0)
25746
25786
raw[SO] type IDBObjectStore = dom.IDBObjectStore (@deprecated in 2.0.0)
25747
- raw[SO] type IDBOpenDBRequest = dom.IDBOpenDBRequest (@deprecated in 2.0.0)
25748
- raw[SO] type IDBRequest = dom.IDBRequest (@deprecated in 2.0.0)
25787
+ raw[SO] type IDBOpenDBRequest = dom.IDBOpenDBRequest[js.Any] (@deprecated in 2.0.0)
25788
+ raw[SO] type IDBRequest = dom.IDBRequest[js.Any] (@deprecated in 2.0.0)
25749
25789
raw[SO] type IDBTransaction = dom.IDBTransaction (@deprecated in 2.0.0)
25750
25790
raw[SO] type IDBVersionChangeEvent = dom.IDBVersionChangeEvent (@deprecated in 2.0.0)
25751
25791
raw[SO] type ImageBitmap = dom.ImageBitmap (@deprecated in 2.0.0)
0 commit comments