Skip to content

Commit 60430e2

Browse files
committed
Add IndexedDB
1 parent ef4c6a9 commit 60430e2

File tree

6 files changed

+601
-33
lines changed

6 files changed

+601
-33
lines changed

src/DOM.res

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ open PictureInPicture
2727
open Storage
2828
open WebLocks
2929
open CSSFontLoading
30+
open IndexedDB
3031

3132
type shadowRootMode =
3233
| @as("closed") Closed
@@ -97,18 +98,6 @@ type shareData = {
9798
mutable url: string,
9899
}
99100

100-
/**
101-
A type returned by some APIs which contains a list of DOMString (strings).
102-
[See DOMStringList on MDN](https://developer.mozilla.org/docs/Web/API/DOMStringList)
103-
*/
104-
type domStringList = {
105-
/**
106-
Returns the number of strings in strings.
107-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)
108-
*/
109-
length: int,
110-
}
111-
112101
/**
113102
The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively.
114103
[See Location on MDN](https://developer.mozilla.org/docs/Web/API/Location)
@@ -5722,7 +5711,7 @@ If the contents are sandboxed into a unique origin (e.g. in an iframe with the s
57225711
Retrieves a collection of all a objects that specify the href property and all area objects in the document.
57235712
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/links)
57245713
*/
5725-
links: htmlCollectionOf<htmlElement>,
5714+
links: htmlCollectionOf<any>,
57265715
/**
57275716
Retrieves a collection, in source order, of all form objects in the document.
57285717
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document/forms)
@@ -8993,22 +8982,6 @@ type blobCallback = blob => unit
89938982

89948983
type videoFrameRequestCallback = float => videoFrameCallbackMetadata => unit
89958984

8996-
module DOMStringList = {
8997-
/**
8998-
Returns the string with index index from strings.
8999-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)
9000-
*/
9001-
@send
9002-
external item: (domStringList, int) => string = "item"
9003-
9004-
/**
9005-
Returns true if strings contains string, and false otherwise.
9006-
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)
9007-
*/
9008-
@send
9009-
external contains: (domStringList, string) => bool = "contains"
9010-
}
9011-
90128985
module Location = {
90138986
/**
90148987
Navigates to the given URL.

src/IndexedDB.js

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)