The final part of moving my code base over to 0.17...
I have a port/subscription which is used to authenticate from an OAuth btn
and it is getting the wrong type.
In main i have this *subscriptions = Instagram.subscriptions*
and in the Instagram module I have this code
*port instagramAuth : ( Maybe String -> msg) -> Sub msg*
*subscriptions model =*
* instagramAuth SetInstagramOAuth*
And I am getting this error
197| App.programWithFlags
198|> {
199|> init = init
200|> , update = update
201|> , view = view
202|> , subscriptions = Instagram.subscriptions
203|> }
Function `programWithFlags` is expecting the argument to be:
{ ..., subscriptions : Model -> Sub Msg }
But it is:
{ ..., subscriptions : Model -> Sub Instagram.Msg }
Detected errors in 1 module.
I think I need to do some kind of Map but I am not 100% sure what it should
look like and everything I have tried has failed
Zach
--
Zach Kessin
Twitter: @zkessin <https://twitter.com/zkessin>
Skype: zachkessin
ᐧ
--
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.