bamorim / typed_ecto_schema

A library to define Ecto schemas with typespecs without all the boilerplate code.
https://hexdocs.pm/typed_ecto_schema
Apache License 2.0
271 stars 18 forks source link

support for Ecto.Enum #7

Closed dvic closed 3 years ago

dvic commented 3 years ago

Definitions like field :foo, Ecto.Enum, values: [:bar1, :bar2] should produce a typespec like :bar1 | :bar2