elm-typescript-interop
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
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
}