on master help sign in
Add note about how to interpret JS functions
commitab53fac3c4da5e50a4ee23c17036c98f653f30e5 authorEvan Czaplicki <info@elm-lang.org> dateWed 18 Dec 2013, 23:35 (13 years ago) parent32e7d1d
1 file changed+4
libraries/JavaScript.elm+4
libraries/JavaScript.elm+4
@@ -5,6 +5,10 @@ module JavaScript where
55the internal data structures of Elm to change and improve with no impact on JS
66integration.
77
8+It is intended to be imported as `import JavaScript as JS`. That way functions
9+like `JS.toInt` convert JavaScript *to* Elm integers and functions like
10+`JS.fromString` gets JavaScript *from* Elm strings.
11+
812# Javascript to Elm
913@docs toString, toInt, toFloat, toBool, toList
1014