Module
Web.DownloadJs
- Package
- purescript-downloadjs
- Repository
- chekoopa/purescript-downloadjs
#Downloadable Source
class Downloadable a whereA class to represent types which can be downloaded using this library.
You can extend it, adding an instance for your
type and casting it to either String (possibly, with data URL),
Blob, ArrayBuffer or a typed array. However, you'll have to use
unsafeToForeign to finally cast your value. Hope we'll fix that.
Members
toDownloadData :: a -> Foreign
Instances
- Modules
- Web.
DownloadJs