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

Support custom typespec #1

Open
gyson opened this issue Apr 25, 2019 · 0 comments
Open

Support custom typespec #1

gyson opened this issue Apr 25, 2019 · 0 comments
Labels

Comments

@gyson
Copy link
Owner

gyson commented Apr 25, 2019

  • Support custom typespec in type.exs conf file. (kind of like type definitions from Typescript)
  • The scope of this custom typespec should be limited to the package.
  • It would override exist typespec.

example type.exs file:

[
  typespec: %{
    Enum => quote do 
      @type some_special_type :: any()

      @spec map(T.p(Enumerable, x), (x -> y)) :: [y] when x: any(), y: any()
    end
  }
]
@gyson gyson added the todo label Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant