@@ -38,10 +38,18 @@ class IDBObjectStore store where
3838 -- |
3939 -- | If add() is used, and if a record with the key already exists the request will fail,
4040 -- | with a "ConstraintError" DOMException.
41− add :: forall v k e. (IDBKey k) => store -> v -> Maybe k -> Aff (idb :: IDB | e) Key
41+ add
42+ :: forall v k e. (IDBKey k)
43+ => store
44+ -> v
45+ -> Maybe k
46+ -> Aff (idb :: IDB | e) Key
4247
4348 -- | Deletes all records in store.
44− clear :: forall e. store -> Aff (idb :: IDB | e) Unit
49+ clear
50+ :: forall e
51+ . store
52+ -> Aff (idb :: IDB | e) Unit
4553
4654 -- | Creates a new index in store with the given name, keyPath and options and
4755 -- | returns a new IDBIndex. If the keyPath and options define constraints that
@@ -49,18 +57,36 @@ class IDBObjectStore store where
4957 -- | will abort with a "ConstraintError" DOMException.
5058 -- |
5159 -- | Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
52− createIndex :: forall e. store -> IndexName -> KeyPath -> IDBIndexParameters -> Aff (idb :: IDB | e) Index
60+ createIndex
61+ :: forall e
62+ . store
63+ -> IndexName
64+ -> KeyPath
65+ -> IDBIndexParameters
66+ -> Aff (idb :: IDB | e) Index
5367
5468 -- | Deletes records in store with the given key or in the given key range in query.
55− delete :: forall e. store -> KeyRange -> Aff (idb :: IDB | e) Unit
69+ delete
70+ :: forall e
71+ . store
72+ -> KeyRange
73+ -> Aff (idb :: IDB | e) Unit
5674
5775 -- | Deletes the index in store with the given name.
5876 -- |
5977 -- | Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
60− deleteIndex :: forall e. store -> IndexName -> Aff (idb :: IDB | e) Unit
78+ deleteIndex
79+ :: forall e
80+ . store
81+ -> IndexName
82+ -> Aff (idb :: IDB | e) Unit
6183
6284 -- | Returns an IDBIndex for the index named name in store.
63− index :: forall e. store -> IndexName -> Aff (idb :: IDB | e) Index
85+ index
86+ :: forall e
87+ . store
88+ -> IndexName
89+ -> Aff (idb :: IDB | e) Index
6490
6591 -- | Adds or updates a record in store with the given value and key.
6692 -- |
@@ -68,7 +94,12 @@ class IDBObjectStore store where
6894 -- | will be thrown.
6995 -- |
7096 -- | If put() is used, any existing record with the key will be replaced.
71− put :: forall v k e. (IDBKey k) => store -> v -> Maybe k -> Aff (idb :: IDB | e) Key
97+ put
98+ :: forall v k e. (IDBKey k)
99+ => store
100+ -> v
101+ -> Maybe k
102+ -> Aff (idb :: IDB | e) Key
72103
73104
74105-- | Type alias for IndexName