on 2323afc help sign in
elk/libraries/JavaScript.elm
26 lines 701 B history raw
2module JavaScript where
5-- Requires that the input array be uniform (all members have the same type)
6toList : JSArray a -> [a]
7toInt : JSNumber -> Int
8toFloat : JSNumber -> Float
9toBool : JSBool -> Bool
10toString : JSString -> String
13-- Produces a uniform JavaScript array with all members of the same type.
14fromList : [a] -> JSArray a
15fromInt : Int -> JSNumber
16fromFloat : Float -> JSNumber
17fromBool : Bool -> JSBool
18fromString : String -> JSString
21-- Turn an `Element` into a plain old DOM node.
22fromElement : Element -> JSDomNode
24-- Turn a DOM node into an `Element`. You can resize the node
25-- using the normal `width` and `height` functions.
26toElement : Int -> Int -> JSDomNode -> Element