Hello guys,
Could someone make sense of this error message for me:
Port `userAction` has an invalid type.
51| port userAction : UserAction -> Cmd Msg
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You are saying it should be:
RemoteControl.UserAction -> Platform.Cmd.Cmd RemoteControl.Msg
But you need to use the particular format described here:
<http://guide.elm-lang.org/effect_managers/>Detected errors in 1 module.
I guess the more appropriate link for this error would
be http://guide.elm-lang.org/interop/javascript.html, but since I am trying
to do the exact same thing as in the example, I feel a little lost.
(UserAction is a record type, but even if I write String there I would get
the same thing)
Thanks,
Gabor
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.