Migrate from typed_struct
This package(typed_structor) keeps the same API as typed_struct.
It is a drop-in replacement for typed_struct.
Migration
- Replace
typed_structwithtyped_structorin yourmix.exsfile.- {:typed_struct, "~> 0.3"} + {:typed_structor, "~> 0.1"} - Run
mix do deps.unlock --unused, deps.get, deps.clean --unusedto fetch the new dependency. - Replace
TypedStructwithTypedStructorin your code.- use TypedStruct + use TypedStructor - typed_struct do + typed_structor do - That's it!