ex_type icon indicating copy to clipboard operation
ex_type copied to clipboard

Support custom typespec

Open gyson opened this issue 6 years ago • 0 comments

  • 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 avatar Apr 25 '19 23:04 gyson