Add DataSource.Port to exposed modules.

This commit is contained in:
Dillon Kearns 2021-07-29 10:10:05 -07:00
parent 4e0c4d3fe6
commit cf0b7235eb
3 changed files with 9 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -19,6 +19,7 @@
"DataSource.Glob",
"DataSource.Http",
"DataSource.File",
"DataSource.Port",
"Pages.Secrets",
"Pages.Manifest",
"Pages.Manifest.Category",

View File

@ -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