Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typespecs to ecto types #11

Open
sitch opened this issue Apr 30, 2021 · 0 comments
Open

Add typespecs to ecto types #11

sitch opened this issue Apr 30, 2021 · 0 comments

Comments

@sitch
Copy link

sitch commented Apr 30, 2021

Example:

defmodule EctoFields.URL do
  
  # add `t:t/0`
  @type t() :: String.t() 
   ...
end

This is useful for your typespec struct definitions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant