Is there a reason that the item function does not return Maybe DOMRect?
|
foreign import item :: DOMRectList -> Int -> DOMRect |
As far as I can tell, the javascript is just a regular indexing into a collection, which may or may not return null, which should definitely be represented in the type system.
Is there a reason that the
itemfunction does not returnMaybe DOMRect?purescript-web-geometry/src/Web/Geometry/DOMRectList.purs
Line 8 in 5499164
As far as I can tell, the javascript is just a regular indexing into a collection, which may or may not return null, which should definitely be represented in the type system.