mdgriffith / elm-animator

A timeline-based animation engine for Elm
https://package.elm-lang.org/packages/mdgriffith/elm-animator/latest/
BSD 3-Clause "New" or "Revised" License
133 stars 14 forks source link

Use type annotation syntax in Animator.init example #2

Closed jfmengels closed 4 years ago

jfmengels commented 4 years ago

I found the type annotation confusing because it was using = instead of :. I noticed elm-format automatically fixes this because it thinks it's a record. So I added a sample Model definition that would make this example syntactically correct and I think not confusing.