elm-typescript-interop
elm-typescript-interop copied to clipboard
Allow annotation of intermediate objects
trafficstars
See #10 for more context. @sporto suggested changing the declaration files so that you can add annotations for the type Elm.
(admin: Elm.Admin.App) is fine. But I don't have an App at this point. I want to call init in this function.
So try to pass Elm or Elm.Admin is the issue. e.g. function(elm: Elm) As TS complains with Cannot use namespace 'Elm' as a type.