elm-typescript-interop icon indicating copy to clipboard operation
elm-typescript-interop copied to clipboard

Allow annotation of intermediate objects

Open dillonkearns opened this issue 7 years ago • 0 comments
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.

dillonkearns avatar Oct 02 '18 15:10 dillonkearns