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.Glob",
|
||||||
"DataSource.Http",
|
"DataSource.Http",
|
||||||
"DataSource.File",
|
"DataSource.File",
|
||||||
|
"DataSource.Port",
|
||||||
"Pages.Secrets",
|
"Pages.Secrets",
|
||||||
"Pages.Manifest",
|
"Pages.Manifest",
|
||||||
"Pages.Manifest.Category",
|
"Pages.Manifest.Category",
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
module DataSource.Port exposing (send)
|
module DataSource.Port exposing (send)
|
||||||
|
|
||||||
|
{-|
|
||||||
|
|
||||||
|
@docs send
|
||||||
|
|
||||||
|
-}
|
||||||
|
|
||||||
import DataSource
|
import DataSource
|
||||||
import DataSource.Http
|
import DataSource.Http
|
||||||
import Json.Encode
|
import Json.Encode
|
||||||
@ -7,6 +13,7 @@ import OptimizedDecoder exposing (Decoder)
|
|||||||
import Secrets
|
import Secrets
|
||||||
|
|
||||||
|
|
||||||
|
{-| -}
|
||||||
send : String -> Json.Encode.Value -> Decoder b -> DataSource.DataSource b
|
send : String -> Json.Encode.Value -> Decoder b -> DataSource.DataSource b
|
||||||
send portName input decoder =
|
send portName input decoder =
|
||||||
DataSource.Http.request
|
DataSource.Http.request
|
||||||
|
Loading…
Reference in New Issue
Block a user