mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-25 09:21:57 +03:00
Add type alias for Flags.
This commit is contained in:
parent
d7e0534dbb
commit
f2652d4df1
@ -13,7 +13,11 @@ import MarkParser
|
||||
import Url exposing (Url)
|
||||
|
||||
|
||||
main : Program () Model Msg
|
||||
type alias Flags =
|
||||
()
|
||||
|
||||
|
||||
main : Program Flags Model Msg
|
||||
main =
|
||||
Browser.application
|
||||
{ init = init
|
||||
@ -31,7 +35,7 @@ type alias Model =
|
||||
}
|
||||
|
||||
|
||||
init : () -> Url.Url -> Nav.Key -> ( Model, Cmd Msg )
|
||||
init : Flags -> Url.Url -> Nav.Key -> ( Model, Cmd Msg )
|
||||
init flags url key =
|
||||
( Model key url, Cmd.none )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user