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

"I couldn't find a type annotation for the main function in `elm/Main.elm`." for elm-cli-options-parser project

Open neurodynamic opened this issue 4 years ago • 0 comments

I get the error in the subject line when trying to run npx elm-typescript-interop on my project.

The main function in the specified file looks like this:

main :
    Program.StatefulProgram Model
        Action
        CliOptions
        { randomNumber1 : Int
        , randomNumber2 : Int
        , workingDirectory : String
        , dataFilePath : String
        , data : Maybe String
        }
main =
    Program.stateful
        { printAndExitFailure = Ports.printAndExitFailure
        , printAndExitSuccess = Ports.printAndExitSuccess
        , init = init
        , config = programConfig
        , update = update
        , subscriptions = subscriptions
        }

neurodynamic avatar Jul 24 '20 19:07 neurodynamic