Merge pull request #119 from madsh/patch-1

Adding explicit 'exposing'
This commit is contained in:
Ryan Haskell-Glatz 2022-05-23 10:50:42 -05:00 committed by GitHub
commit 353552d9f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,10 @@ port load : (Json.Value -> msg) -> Sub msg
Above, we've created a `port module` that defines our `save` and `load` ports. Next, we'll describe the data we want to store, as well as how to convert it to and from JSON:
```elm
port module Storage exposing (..)
port module Storage exposing
( Storage, fromJson, onChange
, increment, decrement
)
import Json.Encode as Encode