Skip to content

Commit 3a379ce

Browse files
committed
Extract HTMLElement
1 parent 48ee189 commit 3a379ce

File tree

3 files changed

+55
-672
lines changed

3 files changed

+55
-672
lines changed

src/DOMAPI/Element.res

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Returns the first (starting at element) inclusive ancestor that matches selector
103103
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap)
104104
*/
105105
@send
106-
external computedStyleMap: element => stylePropertyMapReadOnly = "computedStyleMap"
106+
external computedStyleMap: T.t => stylePropertyMapReadOnly = "computedStyleMap"
107107

108108
/**
109109
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAnimations)
@@ -124,7 +124,7 @@ Returns the qualified names of all element's attributes. Can contain duplicates.
124124
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames)
125125
*/
126126
@send
127-
external getAttributeNames: element => array<string> = "getAttributeNames"
127+
external getAttributeNames: T.t => array<string> = "getAttributeNames"
128128

129129
/**
130130
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode)
@@ -151,13 +151,13 @@ Returns element's attribute whose namespace is namespace and local name is local
151151
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect)
152152
*/
153153
@send
154-
external getBoundingClientRect: element => domRect = "getBoundingClientRect"
154+
external getBoundingClientRect: T.t => domRect = "getBoundingClientRect"
155155

156156
/**
157157
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/getClientRects)
158158
*/
159159
@send
160-
external getClientRects: element => domRectList = "getClientRects"
160+
external getClientRects: T.t => domRectList = "getClientRects"
161161

162162
/**
163163
Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
@@ -208,7 +208,7 @@ Returns true if element has attributes, and false otherwise.
208208
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes)
209209
*/
210210
@send
211-
external hasAttributes: element => bool = "hasAttributes"
211+
external hasAttributes: T.t => bool = "hasAttributes"
212212

213213
/**
214214
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture)
@@ -287,7 +287,7 @@ Removes node.
287287
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/CharacterData/remove)
288288
*/
289289
@send
290-
external remove: element => unit = "remove"
290+
external remove: T.t => unit = "remove"
291291

292292
/**
293293
Removes element's first attribute whose qualified name is qualifiedName.

src/DOMAPI/HTMLElement.js

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)