mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-24 15:12:01 +03:00
Add DataSource.Port to exposed modules.
This commit is contained in:
parent
4e0c4d3fe6
commit
cf0b7235eb
1
elm.json
1
elm.json
@ -19,6 +19,7 @@
|
||||
"DataSource.Glob",
|
||||
"DataSource.Http",
|
||||
"DataSource.File",
|
||||
"DataSource.Port",
|
||||
"Pages.Secrets",
|
||||
"Pages.Manifest",
|
||||
"Pages.Manifest.Category",
|
||||
|
@ -1,5 +1,11 @@
|
||||
module DataSource.Port exposing (send)
|
||||
|
||||
{-|
|
||||
|
||||
@docs send
|
||||
|
||||
-}
|
||||
|
||||
import DataSource
|
||||
import DataSource.Http
|
||||
import Json.Encode
|
||||
@ -7,6 +13,7 @@ import OptimizedDecoder exposing (Decoder)
|
||||
import Secrets
|
||||
|
||||
|
||||
{-| -}
|
||||
send : String -> Json.Encode.Value -> Decoder b -> DataSource.DataSource b
|
||||
send portName input decoder =
|
||||
DataSource.Http.request
|
||||
|
Loading…
Reference in New Issue
Block a user